Search Results

Search: Posts Made By: manubatham20
2,730
Posted By 47shailesh
simpler version: sed s:dmp_file_lst:`ls...
simpler version:
sed s:dmp_file_lst:`ls \/opt\/abcd\/efgh\/export_dump\/$DMP_FILE_NM*.dmp`:g
Forum: HP-UX 03-05-2012
6,233
Posted By methyl
Put this in the script containing the "sort"...
Put this in the script containing the "sort" command.
Do not put it in /etc/profile or root's .profile because it refers to a filesystem which may not be mounted in every run state.


The...
Forum: HP-UX 03-02-2012
6,233
Posted By methyl
It will be /var/tmp by default unless you have...
It will be /var/tmp by default unless you have $TMPDIR set.
See man sort and the "-T" parameter regarding how to change it. You could need three times the size of the original file for work space.
...
18,955
Posted By neutronscott
If you want to pass spaces on the command line,...
If you want to pass spaces on the command line, you should enclose the assignment in quotations, i.e.


awk -v "variable=${var}"


But actually your problem is the input read from stdin (by a...
3,071
Posted By Corona688
$Aug will not come up 8. Aug will come up 8. ...
$Aug will not come up 8. Aug will come up 8.

The -v solution will never work because variables don't work that way. You can't feed awk 8 and have awk decide "oh, there's a variable named Aug...
3,714
Posted By dude2cool
Try this and see if returns the desired output: ...
Try this and see if returns the desired output:

ll|awk -v "year=`date '+%Y'`" '$8!~":"{if(NR>1)printf"%-29s\t\t%s\t%5s\t\t%s %s,%s\n", $9,$1,$5,$6,$7,$8} {if(NR>1)printf"%-29s\t\t%s\t%5s\t\t%s...
3,714
Posted By itkamaraj
ll | awk ' !/^d/ { if(NR>1) {printf...
ll | awk ' !/^d/ { if(NR>1) {printf "%-29s\t\t%s\t%5s\t\t%s %s,%s\n", $9,$1,$5,$6,$7,$8} }'

better to post your ls command output and the required output format
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 10:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy