Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: nilesrex
3,764
Posted By nilesrex
Those are my concerns are .... I googled a lot to...
Those are my concerns are .... I googled a lot to find out such a utility or script or program which would do this for me.....

Actually I can collect the bunch of file and send it to sftp server...
3,764
Posted By nilesrex
Hey Porter, Actually I copied a incorrect...
Hey Porter,

Actually I copied a incorrect thing I am sftping the files to end system. so it is MPUT so I have control with me for the files.

What I am thinking is whenever files are ready to be...
3,764
Posted By nilesrex
Thanks Porter, My real requirement is to use...
Thanks Porter,

My real requirement is to use sftp as both parties have agreed to use both we are doing EDI transactions. Is there any thing which I can add to the script to make it continous....
...
3,764
Posted By nilesrex
sftping continously with out breaking the connection real [emergency.......!!!!!!!!]
Hello Every one,

I have a situation where I want to sftp the files to third part server and I came up with below script where in I am using "expect" utility for sftping the files.
...
58,530
Posted By nilesrex
You can use them seperatly also , however...
You can use them seperatly also ,

however better would be to combine them.

find /dir -ctime +3 -exec rm -rf {}\;

Cheers,
58,530
Posted By nilesrex
it can be related to time issue only...!!! ...
it can be related to time issue only...!!!

if ur files are created more than three days only and not modified then it is not going to work correctly....

Mate ideally use should use ctime and...
12,047
Posted By nilesrex
you dont have correct permissions to open the...
you dont have correct permissions to open the file and grep thru it.
7,342
Posted By nilesrex
What is getent??? can you explain the same. ...
What is getent???

can you explain the same.

cheers
10
13,055
Posted By nilesrex
Bingo..!!!!!!!
space space * means atleast one space....

dose that clear you doub??

cheers
10
13,055
Posted By nilesrex
Gents, Missed one space in the 1st one which...
Gents,

Missed one space in the 1st one which is not forgiveable even if it is typo..

In regular expression evry chatacter counts.

basically + is one or more characters to match is not...
2,291
Posted By nilesrex
Try this one to improve the performanace
ls -a ./*log | sed -n 's/\(.*\)log/mv \1log \1log123/p' | xargs -I {} ksh -c {}


instead of log use ur matching characters,

Cheers,
nilesh
10
13,055
Posted By nilesrex
Sed is also handy
ls -la | sed -n 's/ */|/gp'

or

ls -la | sed -n 's/ [ \t]*/|/gp'

Cheers
rex
7,342
Posted By nilesrex
finger wont help as when I gave bogus username it...
finger wont help as when I gave bogus username it still gave and o/p for $? as 0

Cheers,
21,936
Posted By nilesrex
sed -n "/$variable/,$ p" inputfile > outputfile ...
sed -n "/$variable/,$ p" inputfile > outputfile

please note the double quotes for variable substitution.
2,680
Posted By nilesrex
a2p is gr8t..!!!!!!!!! good to go through...
a2p is gr8t..!!!!!!!!!

good to go through the forum get to know more things

cheers
4,106
Posted By nilesrex
try this.... eecho "hostname port...
try this....

eecho "hostname port sid^J-------- ---- ---^Jsun056 1527 PSP1^Jsun111 1529 PRP1^Jsun107 1580 PRD1^J" | sed 1,2d | \
awk '{ print $3 "-" $1 ".WORLD =(DESCRIPTION =(ADDRESS_LIST...
1,248
Posted By nilesrex
check the .history file in your home...
check the .history file in your home directory.you will find the answer
2,144
Posted By nilesrex
awk -F: '{ print $2 "," }' inputdata.txt | sed -e...
awk -F: '{ print $2 "," }' inputdata.txt | sed -e 'N;s/\n/ /' | sed 's/,$//' | sed 's/^,//'

this one gives what you want but not good to have so many piped o/p's
2,144
Posted By nilesrex
hope this helps
$ awk -F: '{ print $2 }' inputdata.txt | sed 'N;s/\n/ /'
10/01/06 10/02/06



10/03/06 10/04/06



10/01/06 10/02/06
2,144
Posted By nilesrex
can you specify what exactly shld go in o/p file...
can you specify what exactly shld go in o/p file as ur question is not very clear
1,408
Posted By nilesrex
Hello Guys, I was just wondering what would...
Hello Guys,

I was just wondering what would be use of changing RS and FS and printing the out put.

I am new to unix and going thur all the posts to learn more .

If some one can give example...
42,319
Posted By nilesrex
ls is more quicker that find. You can check...
ls is more quicker that find.

You can check the difference by compairing the results by using time command

cheers
18,099
Posted By nilesrex
I getting the error as xterm: Can't execvp...
I getting the error as

xterm: Can't execvp ls -ltr

any one has ideas abt this??
31,588
Posted By nilesrex
Thnx Mate.
Thnx Mate.
31,588
Posted By nilesrex
Tht was kool thanks. When I went thru the...
Tht was kool thanks.

When I went thru the options of ksh did not quite get what -c means as it says " -c file True if file exists and is a character
...
Showing results 1 to 25 of 42

 

Featured Tech Videos

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