Search Results

Search: Posts Made By: eskay
1,671
Posted By MadeInGermany
Lines between m=1 and the following occurrence of...
Lines between m=1 and the following occurrence of the string:
awk '/#ZENCO/ {if (++c>m) exit; next} (c==m)' m=1 abc.txt
2,125
Posted By MadeInGermany
Unix sed needs a ; before a } If the list is...
Unix sed needs a ; before a }
If the list is already sorted you don,t need another sort.
Another solution
awk 'p; /ORDERS.bmk/ {p=1}'
2,125
Posted By junior-helper
sed -n '/ORDERS.bmk/,$ {/ORDERS.bmk/!p}' file |...
sed -n '/ORDERS.bmk/,$ {/ORDERS.bmk/!p}' file | sort -t_ -nk2,2
11,806
Posted By rveri
Hi eskay, For an example to find 19 years...
Hi eskay,

For an example to find 19 years old file:

y=19;t=`echo $y*365|bc`;find . -type f -mtime +"$t" -exec ls -l {} \;

-rwxrw-r-x 1 root sys 695 May 10 1994 ./file1...
1,195
Posted By guruprasadpr
Hi $ awk -F= '/file1/{print $2}' inpfile ...
Hi

$ awk -F= '/file1/{print $2}' inpfile
ABCD_OUT_XYZ_CC_20121016170653


Guru.
1,195
Posted By Yoda
awk -F"=" '/file1/ { print $2 } '...
awk -F"=" '/file1/ { print $2 } ' cc_abcd_jcl.txt
4,163
Posted By Scrutinizer
OK, see if this works: awk '/<TABLE/{print...
OK, see if this works:
awk '/<TABLE/{print RS}NR>1' infile | awk 'BEGIN{print "ID|XML"} {$1=$4"|"$1}1' RS=
A prerequisite is that the id tags are always in the right order within that table,...
Showing results 1 to 7 of 7

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