10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Guys,
I have file A.txt
1
2
3
4
5
6
7
8
9
10
11
Want Output :-
1 2 3 (3 Replies)
Discussion started by: pareshkp
3 Replies
2. Shell Programming and Scripting
I have a very long line in a file separated by "|" delimiter like below. Due to the length of the line, I find it very difficult to read to find a match line.
file = temp.txt
word 1| word 2 | word 3|....
I would like to read the file temp.txt and print out all words line by line like... (1 Reply)
Discussion started by: boldnbeautiful
1 Replies
3. UNIX for Dummies Questions & Answers
Hi All
Is there a way to export every line into new txt file where by the title of each txt output are same as the line ?
I have this txt files containing names:
Kandra Vanhooser
Rhona Menefee
Reynaldo Hutt
Houston Rafferty
Charmaine Lord
Albertine Poucher
Juana Maes
Mitch Lobel... (2 Replies)
Discussion started by: Nexeu
2 Replies
4. Shell Programming and Scripting
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
Discussion started by: Kingcobra
6 Replies
5. Shell Programming and Scripting
I would like break in two line by 'SNAG'
Current data:
SNAG|M1299063| | | | |0001.|0010.|AC64797|2008-02-18|093730.|YVR|AC64797|2008-02-18-09.37.30.250020|N|30|NO LEAKS OR CRACKS THIS A7 SCK SNAG|M1299063| | | |... (10 Replies)
Discussion started by: javeiregh
10 Replies
6. Shell Programming and Scripting
Hi,
How can i split a line of string into two lines.
I would like to format the below string:
Filesystem 1M-blocks Used Available Use% Mounted on /abc/def/xyz 34567 2345 12345 90% /test
to
Filesystem 1M-blocks Used Available Use% Mounted on
/abc/def/xyz 34567 2345 12345 90% /test
... (4 Replies)
Discussion started by: stunnerz_84
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a file that contains multiple lines e.g.
/Plane/Wing/Engine/Rotorblades
I cannot use print $4 as the directories will be different lengths.
All i would like to do is print the very last column in each line in the file i.e. in this case, Rotorblades.
The code i... (4 Replies)
Discussion started by: crunchie
4 Replies
8. Shell Programming and Scripting
Dear All,
I want to split single line into two line or three lines wherever “|” separated values comes using
Input line
test,DEMTEMPUT20100404010012,,,,,,,,|0070086|0070087,
output shoule be
test,DEMTEMPUT20100404010012,,,,,,,,0070086,
test,DEMTEMPUT20100404010012,,,,,,,,0070087, (14 Replies)
Discussion started by: arvindng
14 Replies
9. Shell Programming and Scripting
Hi,
I want to split before reading the complete line as the line is very big and its throwing out of memory. can you suggest.
when i say
#cat $inputFile | while read eachLine
and use the eachLine to split its throwing out of memory as the line size is more than 10000000 characters.
Can you... (1 Reply)
Discussion started by: vijaykrc
1 Replies
10. UNIX for Advanced & Expert Users
hi
i have a file containing lines like
word1,word2,word3,word4,..
word4,word5,word3,word6,...
now i need to make it to look like
word1
word2
word3
word4
.
.
.
in other words ','(comma) is replaced with new line. (5 Replies)
Discussion started by: Raom
5 Replies