Search Results

Search: Posts Made By: Diddy
1,663
Posted By danmero
awk...
awk '/^#/{++c}NF{file="file"c".file_prod_reg";print $0 > file}' file
1,663
Posted By forroughuse
Hi Diddy, u can try something like this: ...
Hi Diddy,

u can try something like this:


bash-2.03$ cat brk.sh
n=`grep -n "#Time" rough1.txt|awk -F":" '{print $1 }'`
m=`expr $n - 1 `
sed -n '1,'$m'p' rough1.txt > file1.file_prod_reg...
2,070
Posted By yinyuemi
awk 'BEGIN{FS=OFS="|"}{a[$1]=$2}NR>FNR && a[$2]...
awk 'BEGIN{FS=OFS="|"}{a[$1]=$2}NR>FNR && a[$2] {print a[$2],$0}' bbb aaa
2,070
Posted By vgersh99
Had you given a more representative sample AND a...
Had you given a more representative sample AND a desired output based on this sample, we could have provided a better solution....
Once again - guessing what you're after....

nawk -F'|'...
1,105
Posted By DC Slick
Search in $GLDATA/parms/cur_fiscalyear.lis for...
Search in $GLDATA/parms/cur_fiscalyear.lis for the line containing "CONSOL" and return the second column of that line. Which, according to that data, should be returning '2011'. Oh, and forgot the...
Showing results 1 to 5 of 5

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