10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to pre-append a variable string to each line in a file contains both single and double quotes?
The variable string has no quotes in it.
thank you very much.
:confused: (8 Replies)
Discussion started by: dtdt
2. Shell Programming and Scripting
I want to make a script to read row by row and find its length. If the length is less than my required length then i hav to append spaces to that paritucular row. Each row contains special characters, spaces, etc.
For example my file contains ,
... (10 Replies)
Discussion started by: Amrutha24
3. Shell Programming and Scripting
I am writing a code to append some numbers in the beginning of each line in all the files present in a directory. The number of files are really huge. The files are numbered as 1.sco, 2.sco, 4.sco (Note: 3.sco is missing).
The files currently look like this:
6 7My task is to... (4 Replies)
Discussion started by: shoaibjameel123
4. Shell Programming and Scripting
I am new to unix. I need to insert a variable which contains some lines of text into a text file after fixed number of lines..
Please help me on this..
Thanks in Advance,
Amrutha (3 Replies)
Discussion started by: amr89
5. Shell Programming and Scripting
I would like to apend the last line of one file on my UNIX box. Please let me know if you have any suggetsion for this.
E.g: I have a file ABC as below
Thanks in advance.
Result: I would like the get the output i.e. file ABC should... (9 Replies)
Discussion started by: rajeshamathi
6. Shell Programming and Scripting
I have a .DAT file like below.
26666666660001343 000001004OLF 029100020090820
28888888880000780 000001013OLF 006500020090820
and so on.....
I want to append each line in a file in .KSH script with XXX with position... (5 Replies)
Discussion started by: kshuser
7. 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
8. Shell Programming and Scripting
I have a file like this..
Maharastra Mumbai worli
Maharastra Mumbai navy
my expected outcome should be like this
Maharastra Mumbai worli
---------- ... (9 Replies)
Discussion started by: geeko
9. Shell Programming and Scripting
Hi, I have two files.
File1 contains two fixed width columns ID of 15 characters length and Name is of 100 characters length.
1-43<<11 spaces>>Swapna<<94 spaces>>
1-234<<10 spaces>>Mani<<96 spaces>>
1-3456<<9 spaces>>Kapil<<95 spaces>>
... (4 Replies)
Discussion started by: manneni prakash
10. Shell Programming and Scripting
I'm having headache on append one line to another based on the fix position.Hope u guys can help.
All i need to do is append the line that start with '3' to a line which start with '1' and the position for line 3 that i need to append is 22.
The original file look like this:
... (2 Replies)
Discussion started by: ashikin_8119