Thanks
I was doing this on solaris box:
# cat textfile |egrep "^cn: " | awk '{print $2}'
and it works fine but how to retrieve 'fullName' filed info at the same time in it will be in format described above for output.
thx
Hi..
I have text file which has info like below.
name=abcd
fullName:abcd xyzw
cn:xyz
name=abcd1
fullName:abcd1 xyzw2
cn:xyz1
name=abcd2
fullName:abcd2 xyzw2
cn:xyz2
etc
etc
and it is large text file.
Now i want to grab the only info od cn: and fullName: info in to seperate file each in one...
Hi..
I need help...
I wont to add one cronjob entry on all my production system (200+). is there any way we can accomodate this task thru script ?
Thanks in advance.
Yogesh.
Hi..
Anyones help be greatly appreciated.
In following two scripts :
last | grep "$MONTH $DAY" > /tmp/$LOGFILE1 2>&1
and
ftp -n -i << EOF > /dev/null 2>&1
Where,
$MONTH, $DAY & $LOGFILE1 are defined variable.
Now what does "2>&1" does ?
please explain.
Regards.
Thank You...I got so far close. the last command gives the error.
cat `tail +CHOICE /tmp/filelist.txt | head -1`
Also in my case, I have about 500+ files and thoses files to display on screen is horrible so is there any way we can fill the screen and for next screen wait for input like that...
Hi..
I have script running on each my systems to grab the user logging activities and send it to securty control system which creates the output file on system. So when security people can view the the output file for desired system.
This output file will be stored on security system under...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.