Search Results

Search: Posts Made By: rahul123_libra
4,332
Posted By rahul123_libra
Thanks RTM but the script doent use ssty...
Thanks RTM

but the script doent use ssty anywhere.

It used to work fine earlier .

What could be the other reason
4,332
Posted By rahul123_libra
cronjob prob
Hi all

I am getting the following error when i execute my cronjob :


stty: : No such device or address
stty: : No such device or address

What could be the problem.

Thanks
Rahul
3
1,720
Posted By rahul123_libra
Didnt get that
Hi

Can you plz explain how is it working.

:confused:
1,993
Posted By rahul123_libra
Great Help !!
Thanks a lot Vino
1,993
Posted By rahul123_libra
Cron Tab problem
I have a script that is being called from cron job .
This script further call 3 scripts which runs in the background .

main script ( called from cron )
{
script1 &
script2 &
script3 &
}
...
21,103
Posted By rahul123_libra
use egrep
U can use this :-

egrep "black|white" colors.txt
20,067
Posted By rahul123_libra
Or u can use awk
awk -F"/" '{ print $NF }'
2,736
Posted By rahul123_libra
Can u explain this :-
Vgresh ,

Can u plz explain that ...
2,736
Posted By rahul123_libra
Using sed
Code :-

sed 's/^\([0-9]*\)/\1 \1/' inputfile
2,177
Posted By rahul123_libra
Try This :-
In the " echo " where u get the final output use this :

echo $nohup_loc2 @ `date +%H:%M:%S` from $cur_fsize - $new_fsize | awk '{tmp=$5;$5=$7;$7=tmp;print $0}'
4,011
Posted By rahul123_libra
Awk or sed
Can u plz paste a part of the file and what output do u want ??
9,732
Posted By rahul123_libra
Which shell r u using ?? It works fine from...
Which shell r u using ??

It works fine from within a script on my shell i.e ksh ( Linux Box )
9,732
Posted By rahul123_libra
Check for ur file names
Everything seems right in ur line

May be there r no files with the specific name .......

Does this give some error ???
5,955
Posted By rahul123_libra
Right
U r right Vino
5,955
Posted By rahul123_libra
use this
echo " Name Time Size "

Inside the for loop try this :-

ls -lrt $file | awk '{print $9; print $8; print $5}' | tr '\n\ ' '
echo " "

where file is the file retrieved from the loop
45,494
Posted By rahul123_libra
THis is for 1 particular case
This is for 1 particular case ( aiyd ) and not for all the options

Isnt it ?
3,840
Posted By rahul123_libra
use tr
get all the columns in a file and use this :-

cat column_list_file | tr '\n' ','
1,874
Posted By rahul123_libra
Use find instead
Hello

grep will take time because as u said there r many sub-directoires under the /vol directory .

It hangs because u have not specified any dir from which it would read
so it waits for some...
45,494
Posted By rahul123_libra
Use awk
for old_name in `ls -l path_to_dir/*jpg`
do
new_name=`awk -F"-" 'BEGIN { OFS="-"} {$3=toupper($3);print $0}' $old_name`
mv $old_name $new_name
done
3,781
Posted By rahul123_libra
Try this
#! /bin/ksh
i=0
for list in `ls -l file*`
do
if [ $i -lt 99 ]
then
tmp=`echo $list| sed "s/^[a-z]*[0-9]*$/flat$i/"`
mv path_to_dir/$i...
7,546
Posted By rahul123_libra
Dont use echo !!
Dont use echo !!!!!

Isnt it
4,385
Posted By rahul123_libra
What is $1 and $l ?? I think the problem is...
What is $1 and $l ??

I think the problem is with $l (small ) as it is not defined .
2,298
Posted By rahul123_libra
why another \ after 1 use this :- ...
why another \ after 1

use this :-


sed "To_date_Parm.*$/To_Date_Parm=${now}/g" ./"$noofdays"\1 > /data01//et2/et2/CTI_London/IAM/metadata/"$noofdays"
3,213
Posted By rahul123_libra
use tee
Use Tee

ls -lt | wc -l | tee /dev/tty file.txt
3,433
Posted By rahul123_libra
Can u plz paste the code of the if block
Can u plz paste the code of the if block
Showing results 1 to 25 of 46

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