Summary: This may be a silly question but does anyone know how I can remove the top line of a file and save it to another file. Is there a command for this. Ma...
Summary: How can I remove a line in a file? e.g. File containing the following 307 319 352 If I wanted to remove line 319, what would be the syntax? Any alive ...
Summary: Hi, I am trying to find out how to remove the last word in a file. For example, a line in a file will contain: one two three four And I want to remove...
Summary: Hi everyone, I am trying to remove some lines from all the files in a directory, for example I am looking at the fields 25-27 and if it is 19 I am tr...
Summary: My requirement is little different, actually I have 2 files, one of the file has 800 line another has 50. No I wanted to check with respect to first f...
Summary: I was wondering if you could help me with a script to remove ALL the lines in a file that are loger then 255 char. This script must also remove the li...
Summary: I'm trying to remove a specific line from a file based on a user defined input. I had found a similar situation where sed was used, but when I tri...
Summary: Hello all, I have wriiten a script to create a html file on the fly. It is as shown below :- 1>echo " " > log.html 2>cat test.log >> log.html 3>echo "...
Summary: Hi All, I want to remove blank lines from a file. I want to compare two files without comments. I have tried this, cut -f1 -d'#' filename > noComme...
Summary: my problem is i want to replace a line in a file e.g i want to replace the line DBUID= (some name) with DBUID=$user variable file name is sample.ksh...
Summary: I need help from anyone out there. I have three files (one about 400 lines, one about 13000 lines and one about 13450 lines). The two smaller files ...
Summary: hi, Your code only remove those lines with negative charges. I want to remove also the positive charges for those with same ID number. There are 3 ...
Summary: Hi, I am trying to find a way to grep for consecutive lines in a file. I need to see if a specific string appears 24 consecutive times in a log file ...
Summary: Hi All, Could somone suggest the solution for this problem? The problem is that I have a abc.txt file in following format. Requiremnt is to: 1) get r...
Summary: Greetings... I would be very thankful for any insight into this situation: It seems to me as though a text file I've received does not have a new line...
Summary: The more specific you can be about your data, the better answers you will get. Following uses awk to isolate a specific line in both file1 and file2, ...
Summary: Hi, Can someone tell me how to append some text to the last line. Basically i have a last line of a file as follows user1:password i would like to ap...
Summary: I have very big file, which contains almost alternate blank lines. Can anybody suggest me how to delete those lines? I don't want to go on individual ...
Summary: Hi, I want to read a file in a C shell script and process all the words of each line as a command set. something like this read line from file ge...
Summary: I want to delete the last 3 lines in a set of files and then replace then with 3 different lines. The files are of different sizes.How do I do it? ...
Summary: So, each line in your control file specifies a block of lines to extract from your data file? cat infile #ABC# line 1 line 2 line 3 #DEF# line 4 line ...