> Hi, > Good Morning..!!! > > how will get the below lines, from Strat to End in > between lines, i want to write in seprate file. > > #Start of lines added by SUNWscu > 20 4 * * 0 /usr/cluster/lib/sc/newcleventlog > /var/cluster/logs/eventlog > 20 4 * * 0 /usr/cluster/lib/sc/newcleventlog > /var/cluster/logs/DS > # End of lines added by SUNWscu > > how can do this in using "grep -A 2 <filename> or > awk" give me the solution > > bye, > Raja
cat <filename> | grep -v "^#" or grep -v "^#" <filename> This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list [email protected]
