10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have a file with multiple entries. After some tests with sed i managed to get the file output as follows:
lsn=TM1ITP1-AM1ITP1-LS,apc=500:0,state=avail,avail/links=1/1,... (5 Replies)
Discussion started by: nms
2. Shell Programming and Scripting
My file (the output of an experiment) starts off looking like this,
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
Subject 1,... (9 Replies)
Discussion started by: samonl
3. UNIX for Dummies Questions & Answers
File name: File.txt
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
Discussion started by: Tanu
4. UNIX for Beginners Questions & Answers
I am using UNix Sun OS sun4u sparc SUNW,SPARC-Enterprise
My intention is to insert a line of text after 13th line of every file inside a particular directory.
While trying to do it for a single file , i am using sed
sed '3 i this is the 4th line' filename
sed: command garbled: 3... (5 Replies)
Discussion started by: gotamp
5. Shell Programming and Scripting
I'm works on Ubuntu server
My goal : I would like to read file line per line, but i want to started at the end of file.
Currently, I use instructions :
while read line;
done < /var/log/apache2/access.log
But, the first line, i don't want this. The file is long... (5 Replies)
Discussion started by: Fuziion
6. Shell Programming and Scripting
Is there an awk script that can easily perform the following operation?
I have a data file that is in the format of
1945-12,22.3... (3 Replies)
Discussion started by: ncwxpanther
7. UNIX for Dummies Questions & Answers
can you please tell me
(1) how to delete 1st and 3rd line only from a file.
(2) How to delete last 4 lines in a file that has 2 blank lines out of last 4 lines.
Thank you. (2 Replies)
Discussion started by: Ariean
8. Shell Programming and Scripting
For my reuirement, I have to read a file from the 2nd line till the last line<EOF>.
I have a file as test.txt, which as a header record in the first line followed by records in rest of the lines.
for i in `cat test.txt`
While doing the above loop, I have read... (5 Replies)
Discussion started by: machomaddy
9. Shell Programming and Scripting
My data is xml'ish (here is an excerpt) :-
<bag name="mybag1" version="1.0"/>
<bag name="mybag2" version="1.1"/>
<bag name="mybag3" version="1.6"/>
I want to delete line containing mybag2 and its subsequent... (5 Replies)
Discussion started by: repudi8or
10. Shell Programming and Scripting
I'd like to run a script with an optional starting point.
Meaning that if no parameter for the script => Do everything, otherwise start from the point specified in the parameter and continue till the end.
I thought of using the "case ..." but I have no result.
# ---------------... (6 Replies)
Discussion started by: ai_dba