Raja schrieb: > 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
This is a generic shell/scripting question: crontab -l | sed -n -e '/Start.*SUNWcsu/,/End.*SUNWcsu/p' Daniel _______________________________________________ opensolaris-discuss mailing list [email protected]
