Search Results

Search: Posts Made By: nirbhay
13,053
Posted By nirbhay
any of them can work. you just have to seperate...
any of them can work. you just have to seperate your commands by semicolon & include all of them in quotes. somethin like this

remsh <machine> -l <account> -n "cd users; ls -l"

i hope u get it.
3,404
Posted By nirbhay
if it's just the matter of picking most recent...
if it's just the matter of picking most recent file, why not run just
ls -t refresh_*
& pick last file through cut/sed/awk ?
Forum: HP-UX 04-10-2009
15,049
Posted By nirbhay
find . -type f | while read file do sed...
find . -type f | while read file
do
sed 's/00001/00002/g' input.filename > tmp.filename
mv tmp.filename input.filename
done
3,554
Posted By nirbhay
why not this ?
cd dirname
find . -type f | xargs rm -f

this will clean all the files & the directory structure will remain intact.

otherwise just use cd dirname; rm -rf *
2,657
Posted By nirbhay
yeah that's right assuming your tar is...
yeah that's right

assuming your tar is install.sophos.tar containing a folder install.sophos
adding this should do the job

ssh $host 'cd /there ; tar -xvf install.sophos.tar;
....
63,336
Posted By nirbhay
yes Angad, you're right. But then, using...
yes Angad, you're right. But then, using 1>/dev/null inside awk causes a few problems as i can see

awk '{ if ( NR == 5 ) { print system("cat add") 1>/dev/null "\n" $0 } else { print } }' input >...
13,053
Posted By nirbhay
remsh is the answer
remsh <machine> -l <acc> -n "<whatever you wanna do on remote side>"
63,336
Posted By nirbhay
system command within awk
I was trying commands within awk. i got stuck here. i take 2 files.


cat input

first
second
third
fourth
fifth
sixth
seventh
eighth
ninht
tenthcat add

***************
Nirbhay...
Showing results 1 to 8 of 8

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