Search Results

Search: Posts Made By: raghu_shekar
2,434
Posted By raghu_shekar
After finding the files, write a small if...
After finding the files, write a small if condition to check if the file is already present and rename it by appending 1 or 2 and then copyig the others...
4,627
Posted By raghu_shekar
Automate CVS login using shell script
Hi,
Can anyone pls help me to automate login to cvs. I basically want to login to cvs and update a file.
the script always gets to the login and returns the prompt for a password.
Is there...
2,242
Posted By raghu_shekar
rsync
rsync
2,010
Posted By raghu_shekar
Could you please elaborate what do you mean by ...
Could you please elaborate what do you mean by
FileA will return either status 1 or 0
Is it the return code....
Where is this value "0" or "1" stored for us to do a compare.
Es=”FileA”

will...
1,865
Posted By raghu_shekar
export PATH=$PATH:/path/u/want
export PATH=$PATH:/path/u/want
4,335
Posted By raghu_shekar
awk -F \: '{print $1}' infile.txt|sed 's/@//g'...
awk -F \: '{print $1}' infile.txt|sed 's/@//g' |uniq
Forum: Solaris 11-24-2010
2,595
Posted By raghu_shekar
You can use a small script to do this... The...
You can use a small script to do this... The below should work, u can enhance the below to ur exact requirements.....

#!/bin/ksh
for file in `find /path/where/you/want/to/search -type f -name...
1,442
Posted By raghu_shekar
Hi Scrutinizer can you please explain awk...
Hi Scrutinizer
can you please explain awk '{$1=$1}1' .
i am new to awk, how does the above code work...

Thanks!!!!
1,442
Posted By raghu_shekar
sed "s/^ *//;s/ *$//;s/ \{1,\}/|/g" inputfile >...
sed "s/^ *//;s/ *$//;s/ \{1,\}/|/g" inputfile > outputfile.txt

The above should work
1,442
Posted By raghu_shekar
Can you give a sample input and output you are...
Can you give a sample input and output you are expecting.....
10,296
Posted By raghu_shekar
$0 will contain the name of your shell script. ...
$0 will contain the name of your shell script.
basename is used to strip directory and suffix from filenames
See below for easy understanding:

$$>>cat testers.sh
#!/bin/sh...
8,121
Posted By raghu_shekar
Hi michaelrozar17 I realised it and fixed...
Hi michaelrozar17
I realised it and fixed it. but did not understand it... :o

Can you please explain what the code does and how. Actually i did not understand teh "\1".
Otherwise i think,...
8,121
Posted By raghu_shekar
hi walid2mi, As per your code, it will change...
hi walid2mi,
As per your code, it will change all the occurances of any value after "=" with the new string..

Michaelrozar17,
I tested your code and it replaces the entire string with the new...
8,121
Posted By raghu_shekar
Search Replace and Update a file
hi,
I am stuck at a place. Please help me out. Here is what i need to do.
Search for a pattern in a propertyfile and change only at one occurance. I have these statements and assignment as a part...
2,737
Posted By raghu_shekar
sorry... that must have been a typo.... i have...
sorry... that must have been a typo.... i have just

src=`awk -F\| '{print $1}' testfile.txt`
dst=`awk -F\| '{print $2}' testfile.txt`
2,737
Posted By raghu_shekar
Logic for file copy operation
Hi,
i need to copy contents from source to destination with a few conditions, Please helpme out.
Sample input file
$>cat testfile.txt
/a/b/c/d | /e/f/g/d (d can be either a file or directory)...
1,049
Posted By raghu_shekar
Help with a Shell script
Hi All,
I need to have a shell script for copying files from one location to another:
here is my script:

function FileCopy {
echo "COPYING"
if [[ -f $src && -f $dst ]];then
...
1,394
Posted By raghu_shekar
This can be accomplished using the label/goto,...
This can be accomplished using the label/goto, but unfortuantely goto is not supported by ksh, nor have i seen a successful implementation in bash as well. you could try the below script and put it...
1,835
Posted By raghu_shekar
in vi mode, type the fllowing: :wq!
in vi mode, type the fllowing:
:wq!
1,455
Posted By raghu_shekar
diff -f file1 file2
diff -f file1 file2
1,801
Posted By raghu_shekar
d=`cal $b 2010|head -1` # prints the calander for...
d=`cal $b 2010|head -1` # prints the calander for the year 2010 for $b(which is the month previous to the current month) | from the previous output it prints the first line(eg: "September 2010")...
23,390
Posted By raghu_shekar
use sed... sed "/ABC/d" inputfile >>...
use sed...

sed "/ABC/d" inputfile >> outputfile
1,804
Posted By raghu_shekar
if you give the absolute path of MY_DIR inside...
if you give the absolute path of MY_DIR inside the script and then echo.... it should work fine....
2,607
Posted By raghu_shekar
Try this.... cd upto datadir/ find . -name...
Try this....
cd upto datadir/
find . -name "*.dat" -exec cp {} /path/where/you/want/files/copied \;
Forum: Open Source 10-08-2010
337,989
Posted By raghu_shekar
VI only
VI only
Showing results 1 to 25 of 57

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