9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am having a two files and different days, and this is example:
So what I want is that file2 with today's date contains only 1234, so where is a problem you would ask?
Problem is here that I put these commands into routers,. and... (3 Replies)
Discussion started by: tomislav91
2. Shell Programming and Scripting
I have some text files in a folder named ff as follows. I need to delete the lines (in-place editing)in these files based on another file aa.txt.
249 253 A P - 0 0 8 0, 0.0 6,-1.4 0, 0.0 2,-0.4 -0.287 25.6-102.0 -74.4 161.1 37.1 13.3 10.9
250... (2 Replies)
Discussion started by: aden
3. Shell Programming and Scripting
I have a file of the following format:
$data1 size 1278
$data2 size 456
$data3 size 154
datas (8 Replies)
Discussion started by: FelipeAd
4. UNIX for Dummies Questions & Answers
I have a process which creates almost 200K files. Each file ranging from 1kb to 5kb. This is almost 2GB of data in all files.
I have a requirement where the business needs only 100MB worth of files.
Is there a way to get files around 100MB (doesn't have to be exactly 100MB) from all the... (2 Replies)
Discussion started by: grep_me
5. Shell Programming and Scripting
Simply, I have a directory of text files and I need to delete every line in every file containing a specific string. I want to write the modified files to an empty sub directory.
I can't seem to get the sed command to delete the lines containing the string, and not just the string, in other... (3 Replies)
Discussion started by: LMHmedchem
6. Shell Programming and Scripting
I want just delete the first 3 lines of files,nothing else to do,
but sed -i.bak '1,3d' *txt
seems very slow for huge files, and I tried sed -i.bak '1,3d;4q' *.txt, remaining only one line, is there any suggestion? (3 Replies)
Discussion started by: frewise
7. Shell Programming and Scripting
I have a group of text files with many lines in each file.
I need to delete all the lines in each and only leave 2 lines in each file. (3 Replies)
Discussion started by: script_op2a
i have enabled audit in our server it is working fine,but now i want to reduce the space with out removing audit.i.e..i want to delete some lines from audit file. here if i use vi editer, audit is not geting up.
i want to delete the data i.e..logs for every 6 days in audit file
plz... (3 Replies)
Discussion started by: spandhan
9. Shell Programming and Scripting
I want to delete first five and last five lines in text files without opening the file and also i want to keep the same file name for all the files.
Thanks in advance!!!
Ragav (10 Replies)
Discussion started by: ragavendran31