Search Results

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


sql_validate "$strExtractQuery"
6,884
Posted By Ambikesh
while read parm do myscript.sh $parm ...
while read parm
do
myscript.sh $parm
done < myparm.txt
22,266
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,710
Posted By Ambikesh
Should work budy.. Any specific error...
Should work budy..
Any specific error...
1,710
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,155
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,664
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,664
Posted By Ambikesh
The finger command will give you real name.. ...
The finger command will give you real name..

man finger
35,884
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,645
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,774
Posted By Ambikesh
man df man du
man df
man du
21,721
Posted By Ambikesh
Use SQL Loader
Use SQL Loader
3,837
Posted By Ambikesh
man getopts
man getopts
3,667
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,669
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,134
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,303
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,146
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,187
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,187
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,651
Posted By Ambikesh
Please elaborate your requirement..
Please elaborate your requirement..
6,240
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,282
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,187
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,006
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 06:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy