9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file output.txt. File looks like this
name1 10
name2 2
name3 5
I get a number n and I need to remove all lines which has number (after name) smaller or equal to n number.
After that I need to write lines from file and my output must be like this:
Output: 'name1 10'
Output: 'name2... (1 Reply)
Discussion started by: kubo12312
1 Replies
2. UNIX for Dummies Questions & Answers
How i print just only the file name in the zip file.
unzip -l AAC_20130930_v13.xml.zip
Archive: AAC_20130930_v13.xml.zip
Length Date Time Name
-------- ---- ---- ----
62665745 11-19-13 10:43 AAC_20130930_v13.xml
-------- -------
62665745 ... (2 Replies)
Discussion started by: Ariean
2 Replies
3. Shell Programming and Scripting
I want remove first line of the file without using any temporary file. Everything should be done in the original file itself since I don't any file creation access whereas I have modify access.
It would be great if somebody help in this regard ASAP .
Thanks in Advance.
Kishore:mad: (1 Reply)
Discussion started by: tvbhkishore
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I don't have enough space on my Unix Box. So, I can't unzip the file and check the size of the file. So, I need to know, Is there any command, to check, how much the unzipped file takes after unzipping. Thanks in Advance. (4 Replies)
Discussion started by: Siva Sankar
4 Replies
5. Shell Programming and Scripting
Hi friends,
I have a doubt, I am not sure whether it is possible ah nu.
I am having a file(sample.txt) which contain 5 lines.
I want to remove 1st line in the file and save the file with same old name (sample.txt).
For removing 1st line i am using
sed 1d filename
But dono how to... (3 Replies)
Discussion started by: natraj005
3 Replies
6. Shell Programming and Scripting
Hi,
I have an excel file generated by system in windows. I am zipping it, transfering to unix and unzipping there. But i'm getting below output while unzipping.
$ /usr/bin/unzip -a 123.zip -d .
Archive: 123.zip
inflating: ./123/Index.xls
When i copy this unzipped xls file to... (0 Replies)
Discussion started by: ajaykumarb
0 Replies
7. Shell Programming and Scripting
I want to remove first line from a file containing 10K + records and want to put that into a new file.
Tried sed '1d' filename>newfile
This is writing all the records into new file.
Can somebody help please? (4 Replies)
Discussion started by: gpaulose
4 Replies
8. Shell Programming and Scripting
How to search a pattern inside a zipped file ie (.gz file) with out unzipping it?
using grep command..
Bit urgent.. pls..help me (2 Replies)
Discussion started by: senraj01
2 Replies
9. Shell Programming and Scripting
Hi,
I need some help in removing the header (first line) and the trailer (last line) in a give file...
The data file actually comes in EBCDIC format and I converted it into ASCII..
Now I need to strip off the first line and the last line..
I think we can use sed to do something like this:... (2 Replies)
Discussion started by: madhunk
2 Replies