10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the following nmap file output with the multiple IP’s listed in the format below. Is there a way that GREP can format the output to just display IP and any ports that contain 'http' for that IP on its own line?
file:
Host: 192.168.1.xxx () Ports: 80/open/tcp//http///,... (3 Replies)
Discussion started by: FCoda10
3 Replies
2. UNIX for Dummies Questions & Answers
How would I get this output to look
$ cat newfile
13114
84652
84148
LIKE THIS?:
13114,84652,84148
sed,cut awk?
syntax? (2 Replies)
Discussion started by: ddurden7
2 Replies
3. Shell Programming and Scripting
I have file with different columns
for ex.
contents of file "txt"
NAME AGE MARKS
HARRY 23 89
TOM 12 67
BOB 23 11
and you see its not formatted.Now, I need the file "txt" to be formatted like
COLUMN1 COLUMN2 COLUMN3
NAME AGE ... (3 Replies)
Discussion started by: vijay_0209
3 Replies
4. Shell Programming and Scripting
Hi everyone.
I've got this fille...
0
5000001
5000002
5000003
5000006
5000007
5000219
11000156
11003130
11003132and this script...
#!/bin/ksh
FILE_ALERT_CONTACT_LIST=users.txt
userID=`awk -F"=" '{printf $1 ", "}' $FILE_ALERT_CONTACT_LIST` (9 Replies)
Discussion started by: Fatbob
9 Replies
5. UNIX for Dummies Questions & Answers
I need to ask a question on how to format the output in a csv format. Right now i am running a shell script which executes a command and the following output is append through a unix script in a .csv file.
So the output of xyz.csv is as follow :-
1. Number = 25 Amount $84,132.22
2.... (1 Reply)
Discussion started by: chris1234
1 Replies
6. Shell Programming and Scripting
How can i change the display of a text file containing
4980
167
187
4980
167
187
4980
167
180
4980
167
180
4980
167
179
4980
272
174 (7 Replies)
Discussion started by: aliaa2a
7 Replies
7. UNIX for Dummies Questions & Answers
OK, I have a command that is getting a result, that I am trying to format using awk.
I think it's pretty ugly, and there is probably a better way to do it, but this is sorta working for me. Anyway, the command:
cat /var/log/cups/page_log | grep testuser | grep My_office_printer | awk '{gsub... (5 Replies)
Discussion started by: TheCrunge
5 Replies
8. UNIX for Dummies Questions & Answers
Hi Again Guys ,
Please i installed linux RH 6.1 on Toshiba , 10G , RAM=128 , 600 MHZ .
After i installed linux i got many error messages , seems it was not installed correctly , also when i finished installation it did not ask me for the 2nd installation CD , and when i logged as root , i... (5 Replies)
Discussion started by: tamemi
5 Replies
9. UNIX for Dummies Questions & Answers
I've been asking on IRC channels but no one answers me, I need to format my hard drive, normally it's just format c:
but c doesn't exist, how do I format when I have linux mandrake installed. Please reply to this quickly, I'm kinda in a rush :( (1 Reply)
Discussion started by: darryll777
1 Replies
10. UNIX for Dummies Questions & Answers
Currently I have a box that I am dual-booting Win98 & Linux on. I have an unformatted 3 gig slice that I would like to install Soloris 8 x86 on. Are there any issues I should be aware of? How close is the x86 install to the sparc install? The Linux partition will be going away but I need to reatain... (1 Reply)
Discussion started by: 98_1LE
1 Replies