10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to output all files that are made by this awk to a specific directory.
awk -F '' '{f = $3 ".txt"; print > f}' input.txt
Since the actual data has several hundred files I redirect the output (well tried to) to a directory.
awk -F '' '{f = $3 ".txt"; close($3 ".txt")} print >... (6 Replies)
Discussion started by: cmccabe
6 Replies
2. Shell Programming and Scripting
Hi,
I have file like below
apple,orange,pineapple,pappya,guva,avocado
want to store as
apple
orange
pineapple
pappya
I tried below command to seprate first field
command1: (3 Replies)
Discussion started by: stew
3 Replies
3. Shell Programming and Scripting
Hi Folks,
I have just basic queries is that suppose I have to monitor the logs then there is a command , suppose I have to monitor the abc.log which is updating dynamically within seconds so the command will be after going to that directory is .. tail -f abc.log
Now please advise what about... (1 Reply)
Discussion started by: punpun66
1 Replies
4. Shell Programming and Scripting
Hi Experts,
How to sepearate the list digit with letters : with a space from where the letters begins, or other words from where the digits ended.
file
52087mo(enbatl)
52049mo(enbatl)
52085mo(enbatl)
25051mo(enbatl)
The output should be looks like:
52087 mo(enbatl)
52049... (10 Replies)
Discussion started by: rveri
10 Replies
5. Shell Programming and Scripting
I would like to separate number by space so that
121231212
222111212
would be
1 2 1 2 3 1 2 1 2
2 2 2 1 1 1 2 1 2
Thanks! (2 Replies)
Discussion started by: johnkim0806
2 Replies
6. Shell Programming and Scripting
Hi all,
I have a requirement to put all the varibles used in an awk command in a separate file. This is because i have arround 100 variables used in an awk command. So i want to put all the variables used for the awk command in a separate file.
Please help me on this.
Thanks in adv. (6 Replies)
Discussion started by: gani_85
6 Replies
7. Shell Programming and Scripting
Hi all
i have a data of this form
10.12.4.22:138
10.12.2.50:137
10.20.2.24:1027
10.12.2.44:138
10.12.2.44:137
10.0.4.38:58871
10.13.3.19:138
i need to separate the number out which is at the last and after ':'
Please help me out
Thanx in advance (5 Replies)
Discussion started by: vaibhavkorde
5 Replies
8. Shell Programming and Scripting
I have this command in a shl (UNIX) to find the lates file that start with EMT in a directory
file=$(ls -tr $EMT*.dat | tail -1) # Select the latest file
It finds:
EMT345.dat
then I have to be able to separate EMT AND the numbers 345 and stored 345 in a variable and incremented, so my new... (7 Replies)
Discussion started by: rechever
7 Replies
9. Shell Programming and Scripting
I have a log file that I am trying to convert. File contents something like this:
aaaaa bbbbbb cccc dddddd\123 eeeee ffffffff
I am trying to output the fields in a different order and separate field 4 so that the "123" and "dddddd" can be output separately. for example
bbbbbb aaaaa 123... (5 Replies)
Discussion started by: jake1988
5 Replies
10. UNIX for Dummies Questions & Answers
Hi,
How to separate numbers and words(with full alphabets) in a particular file and store it in two different files.
Please help me out for this.Using shell scripting.
:confused::confused: (1 Reply)
Discussion started by: kamakshi s
1 Replies