Search Results

Search: Posts Made By: Ambikesh
21,726
Posted By Ambikesh
Use Double Quotes: sql_validate...
Use Double Quotes:


sql_validate "$strExtractQuery"
6,900
Posted By Ambikesh
while read parm do myscript.sh $parm ...
while read parm
do
myscript.sh $parm
done < myparm.txt
22,273
Posted By Ambikesh
What do you mean by replacing the file.. do you...
What do you mean by replacing the file.. do you want to copy or rename it..?
1,716
Posted By Ambikesh
Should work budy.. Any specific error...
Should work budy..
Any specific error...
1,716
Posted By Ambikesh
startApache="/usr/local/apache2/bin/apachectl...
startApache="/usr/local/apache2/bin/apachectl start"
if [ -f "$startApache" ] ; then
. $startApache
fi


OR


action=start
apache="/usr/local/apache2/bin/apachectl"
if [ -f "$apache" ] ;...
3,159
Posted By Ambikesh
Use sed -n 'x,yp' where x is the starting line &...
Use sed -n 'x,yp' where x is the starting line & y is the last line..

Just as explained in post above ur post..

Also to open a huge file you can use ISPF editor.
5,681
Posted By Ambikesh
#!/bin/ksh who | while read user junk do ...
#!/bin/ksh
who | while read user junk
do
realname=`grep $user /etc/passwd | awk ' { FS=":"; print $5}'`
print "User Id - $user and real name - $realname. \n"
done
5,681
Posted By Ambikesh
The finger command will give you real name.. ...
The finger command will give you real name..

man finger
35,927
Posted By Ambikesh
Well du gives the Disk Usage of the directory.....
Well du gives the Disk Usage of the directory.. df will give the space allocated to the file system and usage. Any directory under that file system can use the space allocated to the file system.....
14,665
Posted By Ambikesh
I use following.. used_space=0 ...
I use following..

used_space=0
mount_point=${1:-"/tmp"}
threshold=${2:-90}

used_space=`df -k $mount_point | grep % | awk {'print $5'} | sed 's/%//g'`
print "Free Space available under...
6,791
Posted By Ambikesh
man df man du
man df
man du
21,749
Posted By Ambikesh
Use SQL Loader
Use SQL Loader
3,842
Posted By Ambikesh
man getopts
man getopts
3,673
Posted By Ambikesh
It should work.. try this ftp -nv $SERVERHOST...
It should work.. try this
ftp -nv $SERVERHOST >> "${LOG_FILENAME}" <<EOF
user $ACCT $PASS
ascii
put "${ESTUDENT_PATH}/$SINGPOST_FILENAME"
bye
EOF
11,686
Posted By Ambikesh
If you just want to transfer files from UNIX to...
If you just want to transfer files from UNIX to WINDOWS.. you can very well use FTP.. if you are not comfortable with command line FTP... then download WS_FTP and use it for FTP.. it has a good UI..
2,135
Posted By Ambikesh
#!/bin/ksh # for i in * do if [ ! -d...
#!/bin/ksh
#
for i in *
do
if [ ! -d $i ]
then
dos2unix $i backup/"$i"
fi
done
3,318
Posted By Ambikesh
Buddy.. I told you.. you need to work.. dont rely...
Buddy.. I told you.. you need to work.. dont rely on spoon feeding.. Anyways.. here is the code.. this is flexible code.. you can have n number of fields.. separated by any delimiter..

...
109,291
Posted By Ambikesh
Are you getting email with an attachment or the...
Are you getting email with an attachment or the email itself shows some garbage characters..?
5,217
Posted By Ambikesh
what kind of formatting you want..? You can put a...
what kind of formatting you want..? You can put a delimiter.. that should work..
5,217
Posted By Ambikesh
grep -c "$month" ./log/*.log | sed...
grep -c "$month" ./log/*.log | sed 's/\.\/log\///g' | sed 's/:/ /g'
This very much works for me..
All that command does is to remove the "./log/" from the listing and replace ":" with " "
9,677
Posted By Ambikesh
Please elaborate your requirement..
Please elaborate your requirement..
6,243
Posted By Ambikesh
Make sure that you can run the SQL statement that...
Make sure that you can run the SQL statement that you're passing through shell.. as you have an IN OUT parameter in your PL/SQL.. so you need to pass that in the SQL statement as well..
5,319
Posted By Ambikesh
Search.. and you will find lots of solutions.. ...
Search.. and you will find lots of solutions..
uuencode <file> <attachment_name> | /usr/lib/sendmail <recepient>
5,217
Posted By Ambikesh
Use sed for this. grep -c "$month"...
Use sed for this.

grep -c "$month" ./log/*.log | sed 's/\.\/log\///g' | | sed 's/:/ /g'
25,030
Posted By Ambikesh
Ok.. here it is, this is the sample code.. modify...
Ok.. here it is, this is the sample code.. modify accordingly. I'm taking 10 lines for creating a new file:

#!/bin/ksh
file=$1
i=1;
lines=`wc -l $file | awk '{ print $1 }'`

while [ $i -lt...
Showing results 1 to 25 of 44

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