10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
May I ask for your help regarding one of the UNIX command “awk”. So I executed a script and the output looks like this (see below):
CONTRACTNAME ... (3 Replies)
Discussion started by: steven_huskie
friends because I get this error when calling awk
awk: 0602-546 Can not find or open file estdistica.awk. (10 Replies)
Discussion started by: tricampeon81
3. UNIX for Advanced & Expert Users
Hi, I am new to unix shell script and I have some trouble on the awk sub
I would like to pick the Date "July 10 2012" into $corr_date by using sub() function, but it is not successful.
The inputted text file:
July 10 2012 20:30:50 , 1234567.jpg
July 10 2012 20:30:52 , 5648978.jpg... (1 Reply)
Discussion started by: meroko
4. Shell Programming and Scripting
I have a file as given below $cat int_check
I am running the command as given to find whether field 1 and 3 have proper integer values or not.
awk -F'|' 'int($1)!=$1 || int($3)!=$3' int_check... (7 Replies)
Discussion started by: ashwin3086
5. UNIX for Dummies Questions & Answers
Write a script to calculate the average score and assign a letter grade for each student, also compute the average score for every test (the source data is in the file “grades”). Output all students’ name, scores, and grades in descending order of the average score. Note: please save the output to... (17 Replies)
Discussion started by: dsptl
6. Shell Programming and Scripting
I am working on a script where i am fetching a word from a parameter file and using it as output file name .
here is the part of parameter file contents : it basically contains SQL statements.
Select 'SSFNRTP' as TABLE_NAME,UCSTDT,CVOFIDKEY from (Select 'cofvof_interface' as... (2 Replies)
Discussion started by: manmeet
7. Shell Programming and Scripting
can anyone pls help me out in knowing how a array of elements which are fetched from database is passed to the awk program.
Something like this
AMT=`sqlplus -s usrname/pswd <<EOD
set pagesize 0 feedback off verify off heading off echo on
select amount from... (11 Replies)
Discussion started by: shaik
8. Shell Programming and Scripting
consider a file with the following format: a header row with
colon-separated field names, and data rows with colon-separated values. for
write a script, named extract_columns, that prints out the... (4 Replies)
Discussion started by: ravirdprasad
9. Shell Programming and Scripting
How do I alias the FILE name into awk?
gawk -f awk_script FILE
FILE | gawk awk_script
for FILE in `find ./* -prune -type f -newer ./TIMEFILE`
# Need to have the actual FILE name ran thru an awk script
done (1 Reply)
Discussion started by: goodmis
10. Shell Programming and Scripting
I try to use the unix commands inside awk and couldnt succeed .
Please help me how to achieve it.
Sukumar. (7 Replies)
Discussion started by: jerome Sukumar