Search Results

Search: Posts Made By: sjc
1,906
Posted By sjc
thanks, bu i want to know why it doesnt work with...
thanks, bu i want to know why it doesnt work with . B.sh ?
1,906
Posted By sjc
Launching shell from another
hi,
I have shell script ( say A.sh) that launches another shell script ( say B.sh) on the server.
In shell script A.sh, if i call B.sh as

. B.sh <-- it doesnt work, err file not found
....
Forum: AIX 07-12-2010
2,202
Posted By sjc
tee command can be placed anywhere in a pipe to...
tee command can be placed anywhere in a pipe to check what the output looks like at a certain point. So basically you have directed the output of function haha to a file instead of standard output...
Forum: AIX 07-12-2010
2,202
Posted By sjc
Because you are sending the output to null. just...
Because you are sending the output to null. just remove the pipe and tee cmd and you will get it

script1.kshfunction haha
{
print "calling haha"
exit
}
script2.ksh. script1.ksh
haha ...
2,311
Posted By sjc
cat file | awk '{ split($0,temp," "); print "mv "...
cat file | awk '{ split($0,temp," "); print "mv " temp[1] "Desination" }'

you can pass this to a shell script and can run that script to mv or cp
3,953
Posted By sjc
cat file | awk '{ split($0,temp," ");...
cat file | awk '{ split($0,temp," "); printf("%s\t%s\t%s\t%s\t%s\n",temp[1],temp[2],temp[3],temp[4],temp[5])}'
2,148
Posted By sjc
bitvise ssh --- very good one
bitvise ssh --- very good one
2,739
Posted By sjc
for h in $HouseNums do CheckFile=`ls...
for h in $HouseNums
do
CheckFile=`ls -R "$LolaLoc" | grep $h`
if [ "$CheckFile" != "" ]; then
echo "Found: "$CheckFile
fi
done
7,266
Posted By sjc
awk '{ print toupper($0) }' file.txt
awk '{ print toupper($0) }' file.txt
1,131
Posted By sjc
awk -vi=1 '{ if(i==NR){ print $1,$2; i=i+3}}'...
awk -vi=1 '{ if(i==NR){ print $1,$2; i=i+3}}' *.log

Try this
1,937
Posted By sjc
Well, if i understand correctly. yuo want to get...
Well, if i understand correctly. yuo want to get the fst "chars from the file name that has PDM in it and only in the given folder. If this is the case then you can do it from ls also :

ls...
Showing results 1 to 11 of 11

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