General :: Editing A File Using Awk?
Apr 29, 2010
I have a list of millions of filename in form of say "drau3DDFEA5E01205841DC1B277A".
I need it convert it intousr/local/data/d/dr/dra/drau/drau3DDFEA5E01205841DC1B277AI believe that can be achieved by awk or sed.
View 1 Replies
ADVERTISEMENT
May 4, 2010
I have samsung laptop and there is a nasty program called samsung recovery solution that changes the active partition to Windows each time you enter it. The trouble is: I have 2 OSes, Opensuse and Windows 7, and Grub that is installed in my Extended partition, so each time I enter this recovery program active flag is changed and Windows is loaded instead of grub. I have noticed some boot files in that program's folder, so the question is how can I edit them in most convenient manner? I have kde 4.5.3 is there some sort of included program that would help?
View 6 Replies
View Related
Nov 25, 2010
I use cygwin on Windows7 to open a ssh session to my linux box. When I edit a file with vim, I don't have color, only kind of gray bold. I have colors when I do a ls into my ssh session. I have also colors when I edit files from a ssh session from my linux box to my linux box. I modified the shortcut on Window7 to run cygwin in 256 colors, no effect. Do I need to set an environment variable on my cygwin session ?
On Cygwin and On Fedora when "sshed" from Gygwin : TERM=cygwin
View 2 Replies
View Related
Mar 16, 2010
But any changes I make cannot be saved unless I'm in root. I might be doing this wrong, but I cannot log into root or figure out how to open this file as the root user. I'm still somewhat new to Linux, so could someone please give me an idiot-friendly step-by-step of what to do to open, edit, and save this file as a root user?
View 3 Replies
View Related
Jul 27, 2010
During my several experiment on linux I accidentally put the default runlevel to the value 6..thus before starting its going to restart ..currently running mint 9. there is only one way that somehow i can edit that file from grub command line.
View 4 Replies
View Related
Jul 17, 2011
I have 2 large text files , one looks like this:
<contact type="1">blahblah@hotmail.com</contact>
<contact type="1">blahblah2@hotmail.com</contact>
<contact type="1">blahblah3@hotmail.com</contact>
The other is a list of emails in single column format like this:
emailaddy@hotmail.com
emailaddy2@hotmail.com
emailaddy3@hotmail.com , etc
Is there a command to delete all the blahblah emails from text file 1 and replace them with the ones from text file 2?
Or maybe a linux version of 'Csved' which has the ability to add,remove,insert columns?
View 5 Replies
View Related
Feb 3, 2011
I have the tar file of glibc-2.12.1, but now I want to edit the SPEC file. I can't find it. For those that want a "why", I'm trying to make it smaller. So simply, where is the SPEC file for glibc? (rpmbuild cannot find it in the *.tar.gz file).
View 4 Replies
View Related
Jun 15, 2010
which file is edited of kernel for boosting the application performance at boot
View 2 Replies
View Related
Jul 25, 2011
i have to upload a signature image(in jpeg format) to fill a recruitment form which says file-size must be of between 10-20 kb......i have scanned image which is of 9.5 kb.....tried to edit in shotwell photo manager....tried some random things in Adjust and crop menu but my little changes didn't work, it always shortened the file size......as i don't know anything about Image editing can someone tell me how can i increase the file size (>=10kb) i also tried gnome-screenshot to take the screenshot of the image, but it also saved the new image smaller than 10kb....
View 6 Replies
View Related
Jul 20, 2011
I had/have an old program which works on XP called PaperPort. It allows me to edit and fill in blank forms. I have been searching for something like that for Linux, and to date found nothing, Chances are that I am looking in the wrong places.
View 2 Replies
View Related
Apr 8, 2011
I tried to open and edit a root file to edit it and I got this error:gedit /usr/etc/w3c/validator.conf
View 2 Replies
View Related
May 16, 2010
how to go about editing a .torrent file?
View 3 Replies
View Related
Jul 15, 2009
I did a pg_dump of our data warehouse, and it is 26 gigabytes. I wanted to load this data into a different database product (one that forked from Postgresql, so its syntax is very similar).I needed to change the syntax of the "COPY" command in the pg_dump output, remove references to "public", and change the table owner name. sed did these for me (albeit slowly). The output from pg_dump is a file called "pg-dump-output.sql".
pg_dump produces this:
Code:
...
[code]...
View 4 Replies
View Related
Jan 30, 2011
I am a CS major and Iv'e been using vim with a custom rc file to do my editing... A professor suggested we can use kate with terminal for better speed so I thought I would give it a try. Unlike vim, geany, eclipse and others kate does not indent java code, for example after "{ <ENTER>" it should indent to the right 1 tab, but it does not, so I have to press <TAB> every time I go to new like, and I have to go back and forth for different statements...
This does not make things faster at all, Is this even possible? Any other editor suggestions that do not use GTK, but kde native Qt with terminal emulator?
View 2 Replies
View Related
Jan 6, 2010
Problem is to boot fedora. On my system I have 3 HDD
on 1st - 2 partition (1)XP (2) free space for data NTFS
on 2d - 1 partition (1) Win Serv 2003
on 3d - 3 partitions (1) free space for data NTFS (2) /boot (3) Fedora 12
After installation boot manager doesn't see fedora! Only give me option to run XP or 2003. Another problem Fedora 12 Live CD doesn't work for my graphic. I see some quick text after lanch and then black screen but still understand that there going some processes under that black screen, than it looks like stop and w8 for my decision which I cant make cause don't see what is there going on. So there no chance to get under linux after instalation and no chance using live CD to install GRUB and I need some how edit boot.ini in windows to make it appear fedora in boot menu.
My current boot.ini looks like that:
Code:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(1)partition(1)WINDOWS
[operating systems]
multi(0)disk(0)rdisk(1)partition(1)WINDOWS="Windows Server 2003 Enterprise x64 Edition" /noexecute=optout /fastdetect
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
how should looks 3d line?
Code:
multi(0)disk(0)rdisk(2)partition(3)Linux="Fedora 12" /noexecute=optin /fastdetect
like this?
View 6 Replies
View Related
Feb 18, 2010
How to disable popups in Firefox by editing prefs.js file like the same way you do it by going to Edit-Preferences-Content and unselecting the Block PopUps box. I need to do this through a script thus i need to edit preference file directly.
View 3 Replies
View Related
Jul 18, 2010
I was just wondering if someone could point me in the right direction of an easy to use soft package that can be use for basic video editing...and by basic I mean really basic - I have a video file (.ogg format) which is 11 mins long and I want to cut the last 3 minutes off.
View 1 Replies
View Related
Aug 10, 2010
I'm trying to find out which hard drive my vista installation is labeled in ubuntu so I can finish editing the grub menu.1st file.
All it says on the sourceforge page is
Quote:
Root - You likely have something along these lines "(hd0,1)". "hd0" refers to the your hard drive while 1 points to the partition. Note that for GRUB, partitions start at 0 and not 1. for example 0=Partition 1, 1=Partition 2 and so on.
It doesn't say how I can find out which one my vista is. So I need to know what my hard drive is in linux. Is it hd0,1 or hd0 or what?
View 9 Replies
View Related
Aug 24, 2010
I have an MPEG video file of 1.2 GB. I want to chop it into three (unequal length) pieces so that each piece can play well as a standalone video clip in most media players.I tried using trusty old Avidemux, but I'm getting problems at the start of vid clip #2 and #3, where the colours go very odd indeed before righting themselves after a few seconds.
The settings I used were:
Code:
Video: MPEG-4 ASP (avcodec)
Configure: Constant Quantiser - 4 (all other settings at default)
No filters applied.
Audio: MP3 (lame)
[code]...
The settings above are those I use most often and I usually manage to get reasonably decent output. But this is, I think, the first time my input has been an MPEG file.
View 4 Replies
View Related
Mar 29, 2010
I am trying to increase the font size in the evolution xml file to make the sub-menu easier to read (the menu with new, send/receive, reply, reply to all, forward) I found where the xml file is located but i can not seem to adjust the font. is there a different syntax for xml for changing font than html/css?
View 2 Replies
View Related
Jun 17, 2010
I just began using amarok as a media player and I have a bunch of untagged files which show up in the local collection as Untitled -> Untitled, but since there are multiple files I can't see what they are, and I can't play them. If I go to edit it, it edits all the untitled files to whatever I set it to, because there's a bunch of untitled files. Is there a way for me to add tags to them in amarok one at a time?
View 1 Replies
View Related
Jan 8, 2010
I want to make a program that edits music file ID3 tags, for example: overwrites all "artist" tags for a list of files with other one. I know some c++,python and shell scripting.
- how can I get just the metadata from a mp3 file? Mplayer shows file metadata before playback, but I could not find a switch for mplayer that displays just the data
- how can I edit the metadata?
- What libraries should I check out if I want to implement this with C++ or python?
- What about "custom" metadata tags? In the foobar2000 media player for m$ i could make my own metadata tags (like "record label"). How can these be edited & added?
View 2 Replies
View Related
Mar 16, 2011
I need to edit a line in a file in gedit, but its read only. I need to change
; default-sample-rate = 44100
to
default-sample-rate=44800.
Would anyone know if there is an option to make a read only file editable? Judging by the responses to the thread I followed to enable my soundcard, it is possible, and perhaps there is some setting etc that needs changing
View 3 Replies
View Related
Apr 5, 2010
I have some japanese music files stored on a flash drive that the titles of which are in japanese originally. While in the flash drive, when I go to Properties -> Audio, the title is written in japanese. It does not allow me to edit the file, no matter what permissions I have on it, therefore I can't change the name to english. So, I tried Rhythmbox instead, and transfered the file there. I could change the name, however there is STILL a huge problem.
I have around 300 japanese music files, all of which have to be renamed into english.
I did all this for all of them in Rhythmbox, and clicked "quit" when I was done. When I came back to transfer the files to my MP3 player like usual, I opened Rhythmbox, and...
ALL OF THE FILES WERE STILL IN JAPANESE! It didn't save any of the work I did on editing them. But, I calmed down and thought "oh, you can save playlists! I am sure that if I save them on one, it will keep the edits!" I did this, and it saved nothing. It took me 2 hours to finish the renaming, just to find out that it can't save information edits at all.
View 9 Replies
View Related
Apr 8, 2010
I don't want ubuntu to clean /var/cache/apt/archives directory automatically... is it possible to make it permanent by editing any conf file?
View 5 Replies
View Related
May 14, 2010
I installed Chrome straight from the Google webpage. But, it kept crashing. So I've uninstalled it to go back to Firefox, which I never uninstalled. Problem is, now, links in Evolution and Gwibber no longer work! It's still trying to open Chrome. Presumably I have to edit a variable or config file with the path to the browser in it? Where would I find this?
View 2 Replies
View Related
Jun 20, 2010
How can I edit the song info found in MP3 files and other audio file formats in Ubuntu 9.04 64-bit other then using Rhythmbox?
It's a pain to use Rhythmbox to edit the artist, album, year, Genre and other info of each song because you have to find the song by it name and then change the info. There is no way to put it in a view as folder or drive name or partition so you can simply go to where the files them selves are on the drive and edit mutiple files at the same time without having to search for each song individuly.
In XP all you need to do is right click and select properties and then edit the info there but in Linux all you can do is view the info under properties.
View 3 Replies
View Related
Apr 12, 2011
May I ask that does VIM support editing large files. I'm editing a 3G (good, less than 4G) text file with several millions of lines. I have deleted the first ~110,000 lines and :x (save and exit). OMG: this operation takes more than 3 days. I think it hangs already, so I terminated it. So my question is, can VIM do this???
Mine is:
VIM - Vi IMproved 7.0
Included patches: 1, 3-4, 7-9, 11, 13-17, 19-26, 29-31, 34-44, 47, 50-56, 58-64, 66-73,
[code]...
View 1 Replies
View Related
Sep 6, 2010
I am trying something a bit tricky.Suppose there is a website URL...Now suppose when i open a file /var/www/ test.php which connects to the above website to gather some info and then allow me to further in the process, i want it to instead direct to a file say /var/www/test_done.php.How do i edit my hosts file for such a scenario? Is there any other better option than using a hosts file ?
View 1 Replies
View Related
Jan 2, 2010
I have a new install of Karmic (not an upgrade) on my home network. All the other machines are XP sp2 or sp3. I have the following line in /etc/fstab:
Code:
//desktop/ddrive /home/dram/aDesktop-D cifs credentials=/etc/credentials.dt,nobrl,uid=1001,gid=1001 0 0
[code]....
View 2 Replies
View Related