Search Results

Search: Posts Made By: crystal_pup
1,541
Posted By crystal_pup
find "/home/temp/2*" -type f -mmin -15
find "/home/temp/2*" -type f -mmin -15
913
Posted By crystal_pup
FTP error
Hi Guys

I have written a shell script that will connect to a FTP server and get a list of files that exists in a directory.

The FTP code is as follows.

ftp -i -n -v ${FTP_HOST} <<EOF
...
1,967
Posted By crystal_pup
change the for code as follows :- for data in...
change the for code as follows :-
for data in `echo {$file_nm}` do echo "$data" done
1,824
Posted By crystal_pup
Can we use round brackets in if command? if...
Can we use round brackets in if command?

if ( '$p_region' = 'ESAP' )

should be

if [ '$p_region' == 'ESAP' ]

Also 'then' part is missing in the script.
2,362
Posted By crystal_pup
Why don't you try to chmod the file when your...
Why don't you try to chmod the file when your script has executed writing to the output file?
11
2,694
Posted By crystal_pup
You can try something like this :- set -A...
You can try something like this :-

set -A Months -- 0 JANUARY FEBRUARY MARCH APRIL MAY JUNE JUL AUGUST SEPTEMBER OCTOBER NOVEMBER DECEMBER

# The above command will create an array called...
24,627
Posted By crystal_pup
Try this : ps -p $$ -o %P | sed -n 's/^...
Try this :

ps -p $$ -o %P | sed -n 's/^ *\([0-9][0-9]*\) *$/\1/p'

Where $$ --> Is the process name whose Process ID you want to get.

Hope that helps

Cheers,
Kunal
2,491
Posted By crystal_pup
Hi, Try this : file_name=`cat...
Hi,

Try this :
file_name=`cat standardfilecleanup.lst | awk -F ":" '{print $'$var_value'}'`

Cheers,
Kunal
89,804
Posted By crystal_pup
How abt this? ls -ltr | grep '12 Jul'
How abt this?

ls -ltr | grep '12 Jul'
2,491
Posted By crystal_pup
I believe this command is not properly formatted...
I believe this command is not properly formatted -->
file_name=`cat standardfilecleanup.lst|awk -F: {'print ${var_value}`

Try this :

file_name=`cat standardfilecleanup.lst | awk -F ":"...
Showing results 1 to 10 of 10

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