10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a following file and it has only one occurrence of line that says "Output view:". It could be in middle somewhere ( i don't know the exact location ). I want to move it as the first line of the file.
Output should be:
Output... (13 Replies)
Discussion started by: jakSun8
2. Shell Programming and Scripting
I want to append file names at the beginning of a line for each row
I want a single output file with below format
This one is working but only with unzip files,need to have... (3 Replies)
Discussion started by: rakesh5300
3. Shell Programming and Scripting
Hi, Unix gurus,
I have a requirement as following:
checking existing file, if the file only contain one line. then append "No data" else keep existing file as is.
can i achieve this by in command line without write a script.
Thanks in advance. (4 Replies)
Discussion started by: ken002
4. Shell Programming and Scripting
Say I have a text file like:
How would I use ksh to put the number '2' into the second line of that file? I'm using OpenBSD so the sed syntax might be a bit different (I have no idea how to use sed, though) (4 Replies)
Discussion started by: guitarscn
5. UNIX for Dummies Questions & Answers
a b c
A E F
1 2 3 outfile
a b c
A E F
1 2 3 I tried:
new line' infile > outfilecat outfile
new linea b c
A E F
1 2 3 I don't want the new line be added to the existing first line.
Joseph (7 Replies)
Discussion started by: jdhahbi
6. Shell Programming and Scripting
I have gps receiver log..its giving readings .like below
Connected to localhost.
Escape character is '^]'.
$GPGSV,3,1,11,08,16,328,40,11,36,127,00,28,33,283,39,20,11,165,00*71... (3 Replies)
Discussion started by: gudivada213
7. Shell Programming and Scripting
Please help me in providing sample code to append the following 4 lines in one row.
A1/EXT "BAPBSC10/07B/00" 523 090530 0115
RXOCF-430 HY1711 1
Output should be :
A1/EXT "BAPBSC10/07B/00" 523 090530 0115 ... (8 Replies)
Discussion started by: sudhakaryadav
8. Shell Programming and Scripting
say I want to insert "this is a test" as the first line into file A, besides
echo "this is a test" > /tmp/tmpfile
cat /tmp/tmpfile fileA >> /tmp/result,
is there any simple way I can do it? thanks (7 Replies)
Discussion started by: fedora
I have AIX 5.3 server. I have one big file. in that i want to remove 5000 line from top. is there any command for this?
Vishal (6 Replies)
Discussion started by: vishalpatel03
10. UNIX for Dummies Questions & Answers
We have Multiple source files which has some data, I need a K shell script which will append number '1' as the last character to all the lines of the first file and then increments the value and appends '2' to all the lines to the next file and so on.
Incoming file 1
... (11 Replies)
Discussion started by: dsshishya