10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all, how read varaible and ouput in colum,
e.g.
$ echo $VAR1
opc op odi games gopher vcsa abrt
I like
$ echo $VAR1
opc
op
odi
games
gopher
vcsa
abrt (3 Replies)
Discussion started by: aav1307
3 Replies
2. Shell Programming and Scripting
I have a file, which has '|' as separator; I need to read each line from that file and produce output to another file. While reading, I have certain condition on few specific columns (like column3 ='good'); only those lines will be processed. (3 Replies)
Discussion started by: mady135
3 Replies
3. Shell Programming and Scripting
Hi Experts,
I am trying to get system output to capture inside awk , but not working:
Please advise if this is possible :
I am trying something like this but not working, the output is coming wrong:
echo "" | awk '{d=system ("date") ; print "Current date is:" , d }'
Thanks, (5 Replies)
Discussion started by: rveri
5 Replies
4. UNIX for Advanced & Expert Users
I'm working on a short BASH script on my Ubuntu box that will run powerpoint scripts with MS Powerpoint Viewer 2007 via WINE.
I can run the presentation when I run it manually but what i'd like to do is have the script look for the newest file then run it.
#! /bin/sh
# Start the newest... (2 Replies)
Discussion started by: binary-ninja
2 Replies
5. Shell Programming and Scripting
final.txt file contains
SY10020021 SY10023077 3199 4 803.815 11884 4 1825.22 2.2707
say
set FIRSTLINE = SY10020021
set SECONDLINE=SY10023077
cat final.txt | awk '{if($1==${FIRSTLINE} & $2==${SECONDLINE}){print $9}else{print "ll"}}'..............this should give me value... (1 Reply)
Discussion started by: Indra2011
1 Replies
6. Shell Programming and Scripting
Hi all,
Hope someone can help me out here.
I have this BASH script (see below)
My problem lies with the variable path.
The output of the command find will give me several fields. The 9th field is the path. I want to captured that and the I want to filter this to a specific level.
The... (6 Replies)
Discussion started by: Cowardly
6 Replies
7. UNIX for Dummies Questions & Answers
Dear Unix gurus,
Perhaps I'm missing something,.....I'm having the most infernal difficulty getting AWK to read in an environment variable. For example,
value=5
awk '{print ""$value""}'
should return the number "5". This is not the case. Can somebody help?:confused:
cheers (7 Replies)
Discussion started by: tintin72
7 Replies
8. Shell Programming and Scripting
Hi all,
I'm creating a script which uses 'defaults read' to retrieve details from an Info.plist like this;
defaults read "/Path/Contents/Info" CFBundleShortVersionString
This works fine in Terminal and returns the expected values.
Is it possible to use this command in a script, and... (0 Replies)
Discussion started by: davewg
0 Replies
9. Shell Programming and Scripting
Any help to read the contents of a variable length csv ....??(using awk)
The csv mite look like this :
anjali,ram,rahul,mohini,sam,.... and so on ...
I need to pick up each name..
Thanks in advance
SD (3 Replies)
Discussion started by: shweta_d
3 Replies
10. Shell Programming and Scripting
Hi
I am very new to NAWK programming so this question is probably going to sound really stupid:
I have a NAWK script which contains a DO loop. During each loop it runs a FORTRAN program which in turn generates two output files , each one containing 2 integer variables. I would appreciate it... (8 Replies)
Discussion started by: robbiegregg
8 Replies