10 More Discussions You Might Find Interesting
1. Linux
Hi,
I am using a command :-
ps -auxwww 2> /dev/null | awk 'match ($0, GIN:*/) {print substr($0, RSTART+3, RLENGTH-3)}' | sort | grep -v -F 'which gives output as
3 aruau
5 asun
4 cgan
Now I need a command which gives me something like this :-
3 aruau
5 asun
4 cgan... (2 Replies)
Discussion started by: Raj999
2 Replies
2. Shell Programming and Scripting
Hi Team,
I have one file in that almost 100+ words in lines
Eg:-
Unix
windows
solaris
Linux
...
...
But I want arrange all lines in table format and can able read on screen
Eg: -
Unix windows solaris Lunix......
Hp unix Mac-os ......
Like as Table...... (11 Replies)
Discussion started by: Bhaskar Alagala
11 Replies
3. Shell Programming and Scripting
Hi may i ask how to arrange this file in into columns like example below
Problem:
#cat data.txt
1
2
3
4
5
a
b
c
d
9
8
7
6
desired output (9 Replies)
Discussion started by: jao_madn
9 Replies
4. Shell Programming and Scripting
10.142.7.155 - - www.abc.com 404 -
I have many columns which is tab delimited file, I have to re-arrange this to a particular column and also add "-" to 3rd column and 6th column.
10.142.7.155 - - - www.abc.com - 404 - (4 Replies)
Discussion started by: sandy1028
4 Replies
5. Shell Programming and Scripting
How would I reverse a list of fqdn and comma delimited to 5 levels but keep a number at the end?
Input:
aa.bb.cc.dd.com,78
Output:
dd,cc,bb,aa,,78
thanks & regards (3 Replies)
Discussion started by: hazno
3 Replies
6. UNIX for Dummies Questions & Answers
I have a following data:
100 200
300 400
I want the data to be arranged:
100 200 300 400
What is the best way to do this?
Thanks! (5 Replies)
Discussion started by: bobo
5 Replies
7. Shell Programming and Scripting
Any idea in awk or sed?
$cat file
a b c
2 4 5 6
output:
a
b
c
2
4
5
6 (3 Replies)
Discussion started by: kenshinhimura
3 Replies
8. UNIX for Dummies Questions & Answers
I've got hundreds of lines in a file that looks like this:
Line1 CCR CCH
Line2 ICVM FBO GSC
Line3 MKF
The result should be like the one below so that I can insert them on our database.
Line1 CCR
Line1 CCH
Line2 ICVM
Line2 FBO
Line2 GSC
Line3 MKF
Thanks in advance! (4 Replies)
Discussion started by: The One
4 Replies
9. Shell Programming and Scripting
Hi all,
If I have a flat file
ID|Location|Date|Hostname|Age|Sex
1|SFO|06/02/24 12:12:34|hawkeye|35|M
2|LAX|06/02/24 13:12:35|sf49ers|30|M
3|OAK|06/02/25 11:12:36|goraiders|27|F
4|PIT|06/02/25 12:12:37|steeler|35|M
How can I create an output
1|SFO|02/24/2006 12:12:34|hawkeye|35|M... (6 Replies)
Discussion started by: sabercats
6 Replies
10. Shell Programming and Scripting
Hi - can any one let me know how to re-arrange the columns of a comma seperated file. The problem here is that the colums some times have new lines and when the columns has new lines or extra comma's then it is enclosed in double quotes("). Can any one tell me how to re-arrange the columns now.
... (0 Replies)
Discussion started by: ahmedwaseem2000
0 Replies