Quick Links
Computing.Net Solution CenterDesktop Access to SearchAsk a New Question
Sponsored Results for: Delete first line of a file
Search Results for: Delete first line of a file
Product Search Results
Results
1 - 25 of
7884
- higher confidence,
- lower confidence
Delete first line of a file 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...
Get the first line from a file Summary: Hi All, I want to get the first line from a file and write it into another file. Please help. Thanks in advance. Regards, Raj Thanks & Reg...
Extracting lines from a file Summary: I want to extract certain lines of a file between separators such as: ------ aaabbbb ------ aaaaa xxxxxx ------ xxxxx What utility (other than awk or ...
Printing last few pages (or lines) of a Summary: Not to be dense, but can you clarify that for me? I'm printing to a printer called comprm, and I want the last, say, 500 lines of a file called PA851...
Remove Ist Blank Page in a File Summary: Found out the solution Guys: sed '1,1d' outfile > newfile My file always started with a page break, so I delete the first line of the file using sed a...
Delete last character in a file Summary: ...though that will only make a difference if the last line of the file contains a character to delete. I'm not sure what you want to happen in that s...
Script to Remove lines from a file Summary: I was wondering if you could help me with a script to remove ALL the lines in a file that contain the word "BOUNDARY". I have the script like this so...
update the contents of a file in Un Summary: What do you mean by "update the contents of a file"? Do you want to add to, delete from, or modify the current contents of the file? Depending on ex...
Last line of a file Summary: Hello, Recently began writing some UNIX scripts with a lot of success. One problem I have encountered that really stumps me. In an alias file, af...
Find length of each line in a file. Summary: Hi All, I have a file, contains: "jfd, jlk, slj, lsk, lskd, sldj, adk" "sdj, lkdjf, lsdjfj, lsjf, kds, skldj, slk" "kdj, kdsk, skd, skdk, sljs " .....
Finding Word count of first line Summary: Hi, I want to count the number of words in the first line of a textfile and check whether it is equal to 21. So I am doing like ...
Append to last line of file 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...
Comparing time/date of a file... Summary: Hi, I too am a 'newbie' at scripting. This is a problem that I have been stuck on for a while. I have a script that is creating files from another...
Change last line of file using sed Summary: Hi, I wish to add "\" symbol at the end of each line of a file, except the last one. e.g. Original file: (OBJ)/a.o (OBJ)/b.o (OBJ)/c.o (OBJ)/d.o...
how to find complete path of a file Summary: hi guru,s fo unix! help me out to find the complete/full path of a file present in any directory.I am actually trying to create a script which moves a...
how to get the modified time of a file Summary: Any way of getting the modified timestamp of a file in the format I want, say dd/mm/yyyy hh24:mi:ss format, irrespective of when the file is last modi...
how to replace a line in a file 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...
Removing a lines in a file 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 ...
To read the value of a variable Summary: You set a variable in ksh with var=value not set var=value To evaluate a command and retrieve its value, use var=$(command...) tail returns the last n...
how to identify the size of a file Summary: i want to know the size of a file and check whether it is empty or not dynamically (through another script) how to write code for it ...
finding consecutive lines in a file 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 ...
Compare Lines within a file Summary: I want to compare lines in a file and if there is duplicate information in a certain field(s) remove it but leave the field seperators. fileA a632713,...
search for word/s in a file Summary: hi, i need a shell script to find the position of one or more words in one line of a file and then get a number/s which is/are located in the same pos...
how to delete last 3 lines of files Summary: Hello, First of all, let me deal with the first part, that is to say removing the 3 trailing lines of your file. It strongly depends on your OS. Thus:...
Script to delete lines from a file 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...
Jump To:
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | >>Sponsored Results for: Delete first line of a file