Summary: I need more help on removing the first line of my file. I have tried both suggestions but both of them seems to extract the 1st line of my old file an...
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: The 'for fn...' loop lists all of the files so that they can be compared with the file master. What you want is that instead of master, the second fi...
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: 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: so what should file 3 look like? I'm interpreting that you want to compare line 1 in file 1 with line 1 in file2 , line 2 with file 1 with line 2 in ...
Summary: Hi, I am trying to compare 2 files (A and B) to come up with a list of lines that are in A but not in B and store that list in File C. What UNIX comma...
Summary: Hi, I want to compare two fixed width files columnswise in unix. Both are large of around 1000+ columns. Also columns are of different lengths within ...
Summary: hi, file1: hello hi test god file2: hi hello let's say file one is a masterfile, and i wanted to print out string that are in file1 and NOT in file2.....
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: Have you tried grep? I'm on a windows system (without grep) so, I can't test and verify if my systax is correct but this should be close. grep -v /re...
Summary: For practice, I coded a sed solution for this. Â The rules that I followed are: Join all lines together, but a line beginning with NEW will start a ne...
Summary: hi, i need to pick up a line from a file and store it in a variable.i dont know the number of lines that the file contains...so i cannot specify it by...
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: How : 1. File A (Flatfile with NAME|DATE|ID1|ID2|ID3|ID4|ID5) CJKA|2005-12-10-08.01.30.000000|1111111111|ECI|1112221111|1113331111|1114441111 DMCH|200...
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: hai, i want to remove duplicate lines from any part of the file...uniq command is used to remove only the adjacent duplicate lines...if we use sort ...
Summary: Here are both awk and sed solutions to eliminate blank lines within a certain range of lines. Both of these use the /from/,/to/ range of lines constr...