10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This is the file which contains only neccessary values from the output of curl command i.e TEMP_FILE
Proxy Hostname
server0123.domain.com
Proxy IP address
XXX.XXX.XX.XX port 0000
Proxy Version
SGOS X.X.X.X
Proxy Serial #
... (5 Replies)
Discussion started by: ramprabhum
5 Replies
2. Shell Programming and Scripting
Trying to do so
echo "111:222:333" |awk -F: '{system("export TESTO=" $2)}'But it doesn't work (2 Replies)
Discussion started by: urello
2 Replies
3. Shell Programming and Scripting
Hello,
I'm trying to get the TOP and BASE numbers printed out
File looks like this:
2300 CAR # 2300 is the TOP
2310 CAR
2335 CAR
2455 CAR # 2455 is the BASE
1000 MOTOR # 2455 will become this TOP
2000 MOTOR
3000 MOTOR
4000 MOTOR # 4000 is the BASE
2345 BIKE # 4000... (8 Replies)
Discussion started by: charlieglen
8 Replies
4. UNIX for Dummies Questions & Answers
im using awk as a part of my tasks to filter out stuff for reporting details in our storage environment, supposed i filtered out these details (sorry, this might be long.)
bash$ > for x in 1 2; do symdg show floras0-snap$x | awk '{print $3,$4}'; done
: REGULAR
in GNS
Yes
:... (10 Replies)
Discussion started by: prodigy06
10 Replies
5. Shell Programming and Scripting
Hi guys, I'd be grateful if you could have a look at my code below and give me some feedback as to why the homedir and fullname variables aren't being printed to Standard Output when the script is run. Many thanks.
read -p "Please type in username you wish to get information from: " username
... (6 Replies)
Discussion started by: jjb1989
6 Replies
6. Shell Programming and Scripting
awk is only printing out the variables on the first AK2, how do I get it to print out the variables for every occurrence of AK2?
grep -l "^ST.997" *.replaced|sort -n|uniq>FILELIST
while read file
do
let "count = $count+1"
<$file awk 'BEGIN {
FS=""
... (0 Replies)
Discussion started by: verge
0 Replies
7. Shell Programming and Scripting
am trying to grab the fields marked in red for monitoring purposes. each vfiler can have anywhere from 0-50 Path(s).
in order to get here i run the following
for filer in `cat filers.list` ; do ssh $filer vfiler status | awk '{print $1}' ; done
this returns
vfiler0
vfilert
vfiler2
... (2 Replies)
Discussion started by: riegersteve
2 Replies
8. Shell Programming and Scripting
Is anyone able to help with writing a program that will do the following:
1. Read the contents of a file, line by line, and on each line, assign each of the two columns to a shell variable.
2. perform an action on the variables
3. Read the next line.
Here is what I've gotten so far. ... (3 Replies)
Discussion started by: akbar
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
One silly question. I would like to add statement like below and append to a file. I used the below code; however, it does not work. Can anyone please tell me what mistakes I have made?
awk '
{ for (i=1;i<=563;i++)
print i
}'>>output.txt
Thanks.
-Jason (1 Reply)
Discussion started by: ahjiefreak
1 Replies
10. AIX
I am in the process of migrating software from HP-UX to AIX 5. On the HP box, instead of printing directly to the printer, we piped everything through a ksh script to set the printing parameters (such as landscape/portrait, 12.5 cpi, duplex, etc, etc) via the "-o" option. Since we move printers... (0 Replies)
Discussion started by: Highness
0 Replies