Summary: Hello. I am trying to concatenate multiple csv files using cat, and it works. It's just that in every file besides the first one, the first line get...
Summary: How do i delete first line of a file. The file starts with page break ^L. The first line contains the page break ^L. The file may have multiple pagebr...
Summary: URGENT HELP NEEDED... I need to know how to delete duplicate lines from a pipe delimited file (ksh). it should check only the 1st field for any duplic...
Summary: hi, i need to search for a pattern in files for example the content of the file is below 3555005!K!00630000078!C!20090805235959!47001231000000!1604229...
Summary: Hi there, I use cat *.txt > junk.lst to concatenate all the txt file in current directory into a big file called junk.lst for later processing, my pro...
Summary: HI I have a very large datafile with almost 8 million lines in it and its size is almost 44 Gigs. I have to look for certain lines in that file and i...
Summary: A b command branches to the specified label, or if no label is specified (as in this case), it branches to end_of_line processing, at which point it w...
Summary: hi, I am trying to write a script to delete few lines from the existing files. The requirement is as follows: 1. I need to grep for a pattern "abc" in...
Summary: ive tried all the possibilties on the sed one liners sites, and tried everything mysefl, but i cant figure it out... ive got a file, containing duplic...
Summary: A better way to delete last line would be: sed '$d' $filename > offertest.txt And to delete first and last line: sed '1d;$d' $filename > offertest.txt...
Summary: Hi, I have figured out several line numbers that need to be deleted from a file. Say lines_to_rm="8 9 10 11 34 35 78 79" I have tried adding a "d" to...
Summary: Hi, I would like to know how to delete the second occurance of a pattern. For example, the pattern is: 1. First line 2. Some other sentence 3. Another...
Summary: Tanks again! I thought everything would work fine now, but something is missing. The cron job is not able to execute the script. I'm told that the cro...
Summary: Hi folks, I have 2 files in unix header.txt and data.txt. I have the header file which has all the column names and the data.txt file has the da...
Summary: So second element of the first file links to second element in the second file, right? I'd say a good way to do it would be to use awk. Write a script...
Summary: Just as you have done! 1) write the script, putting magic string in the first line 2) $> chmod +x script_file 3) $> ./script_file arg1 arg2 ... argn...
Summary: Awesome Jim...You are the best!!! when I say column misalignment..I opened the outfile in an excel sheet...and there..say for the first line(row)of th...
Summary: try Ctrl-Alt any one from f2-f6 from X-win is you have it standard( I am sure you do) You are in run level 5, below is a file called inittab on my sys...
Summary: David's is an easy, straightforward solution to this problem. However, if you'd like to edit the file in place, you can do this: vi yourfile > /dev/nu...
Summary: how any one can write SED script for following requirement? Test1.text file has following data : Che is CLA and XP is //event[tag = cast and line = 29...
Summary: Hi I am trying to write a script to check the log files for the trancactions based on usr input date and user input user id. I will take the user inp...