10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
DE_CODE|1{AXXANY}1APP_NAME|2{TELCO}2LOC|NY
DE_CODE|1{AXXATX}1APP_NAME|2{TELCO}2LOC|TX
DE_CODE|1{AXXABT}1APP_NAME|2{TELCO}2LOC|BT
DE_CODE|1{AXXANJ}1APP_NAME|2{TELCO}2LOC|NJ
i have out put file like below i have to convert it in the format as below.
DE_CODE = AXXANY
APP_NAME= TELCO
LOC = NY... (4 Replies)
Discussion started by: mail2sant
4 Replies
2. Shell Programming and Scripting
Hi friends,
I am new to UNIX.
I going to transfer files using SFTP. I am writing a script and using mget .
If i am using mget * means,
if all the files and their sub directories are transferred or not?
If suppose , the local system dose not have the sub directory then what will... (1 Reply)
Discussion started by: punitha
1 Replies
3. Shell Programming and Scripting
I have a file sample.txt with the following contents:
the following gives output as
awk 'NF{s=$0; print s}' sample.txt
but,
awk 'NF{s=$0}{print s}' sample.txtgives output as
why this difference, can someone explain me? (6 Replies)
Discussion started by: royalibrahim
6 Replies
4. UNIX for Dummies Questions & Answers
I am using a oracle query from unix..
flag=`sqlplus -s <<EOF
SELECT 'Y' FROM table_name
WHERE cond1 = '${table_name}'
AND DECODE('${var_a}','''NA''',own,'${var_b0}')= own
exception
when no_data_found then
dbms_output.put_line(NVL(l_owner_flag,'X'));
end;
EOF`
Its not validating the... (7 Replies)
Discussion started by: sivakumar.rj
7 Replies
5. Shell Programming and Scripting
I have executed the below command:
find . -name "Ks*" -type f -exec ls -ltr {} \; | awk '{printf("%ld %s %d %s \n",$5,$6,$7,$8,$9)}'
and here is the output:
1282 Oct 7 2004
51590 Jul 10 2006
921 Oct 7 2004
1389 Jun 4 2003
1037 May 19 2004
334 Mar 24 2004
672 Jul 8 2003
977... (6 Replies)
Discussion started by: venkatesht
6 Replies
6. Shell Programming and Scripting
Hi ,
I have a file in the below format:
1.txt
awk 'BEGIN { printf ("%1s", "man" )} '
awk 'BEGIN { printf ("%9s", "women" )} '
awk 'BEGIN { printf ("%56s", "human")} '
##
###
##
echo "$!"
##
awk 'BEGIN { printf ("%1s", "aaa" )} '
awk 'BEGIN { printf ("%19s", "bbb" )} ' ... (4 Replies)
Discussion started by: jisha
4 Replies
7. Shell Programming and Scripting
Hello,
Iam trying to get the IP of the hostname of the machine from /etc/hosts.
I used the command as below:
But the result shows the IP with the hostname..
like
192.168.0.8 test12111.com
I need to get only 192.168.0.8
Please help
Thanks in advance
esham (11 Replies)
Discussion started by: esham
11 Replies
8. Shell Programming and Scripting
Hi all,
column1
--------
33
44
55
66
please provide the script using awk command to dispaly output 55.
Help apperciated..
thanks,
Nirmal (4 Replies)
Discussion started by: abnirmal
4 Replies
9. Shell Programming and Scripting
How to embed a shell script into a C++ program...do kinbdly help me by giving an example....
Thanking you... (1 Reply)
Discussion started by: vas_dba
1 Replies
10. UNIX for Dummies Questions & Answers
I'm having a file with 5 fields.
I want to sort that file according to one field
no 3. How shall I do using awk programming.
Any input appreciatable.
regards,
vadivel. (7 Replies)
Discussion started by: vadivel
7 Replies