Search Results

Search: Posts Made By: abinaya
4,715
Posted By abinaya
this command will look for file whose...
this command will look for file whose modification time is older than 7 days and zip them as filename.gz and not with the timestamp.

Also tell me does ur filename has space inbetween or any other...
16,794
Posted By abinaya
Try this ls -lR
Try this ls -lR
5,457
Posted By abinaya
Unix - Disk usage command
Hi,

I need a command that gives me the user who is using more space in the unix box
5,778
Posted By abinaya
Hi, infile ---> input file which contains...
Hi,

infile ---> input file which contains the list of files to check.
indir ----> directory where the file comes in
newdir --> directory where the file needs to be transfered

Put the below...
8,038
Posted By abinaya
Hi, It is the behaviour of the borune shell.
Hi,

It is the behaviour of the borune shell.
1,631
Posted By abinaya
Hi, # more infile adfad aadfsdfsa ...
Hi,

# more infile
adfad
aadfsdfsa
adfadsf
<name>TypeOptions</name>
adfdasf
adfad
adfad
# more lineadd.sh
#!/bin/sh
echo "Enter the pattern to search ?"
read pattern
echo "Enter the...
54,536
Posted By abinaya
Hi, Try the below code. #!/bin/sh...
Hi,

Try the below code.


#!/bin/sh
ftp hostname <<END_SCRIPT
quote USER <username>
quote PASS <password>
cd /home/scripts
get $FILE\_up\_test
bye
END_SCRIPT
exit 0
2,029
Posted By abinaya
Hi, Try the below code: #!/bin/sh...
Hi,

Try the below code:


#!/bin/sh
for i in `cat concatinfile`
do
while read line
do
echo "`echo $i | cut -d"/" -f4 | cut -d"_" -f1`: $line" >> concatoutfile
done < $i
done



...
6,890
Posted By abinaya
Hi ignore the text "[/quote]" near done <...
Hi

ignore the text "[/quote]" near done < file1
6,890
Posted By abinaya
Hi, Check the below code more search.sh...
Hi,

Check the below code

more search.sh
#!/bin/sh

while read line
do
stxt=`echo $line`
for i in `cat file2`
do
ftxt=`grep -i $stxt $i`
if [ -n "$ftxt" ];then
...
5,284
Posted By abinaya
Hi, I have created few files with spave in...
Hi,

I have created few files with spave in between.My code works as follows.

# more test1
#!/bin/sh
for file in *.txt
do
echo " \"$file\" delete(Y/N) :"
read opt
...
5,284
Posted By abinaya
hi, did u try the code given by me ?
hi,

did u try the code given by me ?
9,999
Posted By abinaya
Hi, Check the below code infile is...
Hi,

Check the below code

infile is the input file containing the list of ABC01_* files
this is can be done by adding the code in the below script


cd <dirname>
ls -l | awk '{print $9}'...
5,284
Posted By abinaya
Hi, Check the below code ...
Hi,

Check the below code


#!/bin/sh
for file in *.txt
do
echo " \"$file\" delete(Y/N) :"
read opt
case $opt in
[yY])rm "$file"
echo...
7,991
Posted By abinaya
Hi, COuld u please tell the location of...
Hi,

COuld u please tell the location of source.txt file
16,835
Posted By abinaya
Hi, Try this script #cat infile ...
Hi,

Try this script

#cat infile
approved package
waiting for approval package
disapproved package
removed package
approved package
approved package



#!/bin/sh

while read line...
7,991
Posted By abinaya
Hi, while read line do untar...
Hi,

while read line
do
untar special.tar.gz -xvfz $line
cd $line
USROWN=`echo $line | cut -d"/" -f3`
chown -R $USROWN:$USROWN *
chmod -R 755 *
done < source.txt
7,991
Posted By abinaya
Hi, check this out ! while read line do ...
Hi,
check this out !

while read line
do
untar special.tar.gz -xvfz $line
cd $line
chown -R user409:user409 *
chmod -R 755 *
done < source.txt
2
7,337
Posted By abinaya
hi, chown -R dirname
hi,

chown -R dirname
2,543
Posted By abinaya
FTP transfer from Linux to unix box
Hi,

I transferred a tar.gz file from a linux server to a unix server using ftp.
In the unix box when i untarred, only few files with zero bytes were copied and i get "tar dir : cksum error"
...
1,441
Posted By abinaya
Hi, since the function "DstFax02" is called...
Hi,

since the function "DstFax02" is called by the function "PingTest", it is enough u call the function "PingTest" in the main process and not the DstFax02.

#Main Process
PingTest
24,616
Posted By abinaya
hi, There is syntax error in the line ...
hi,

There is syntax error in the line

ch_mod=`ls -l "${i}"| awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf("%0o ",k);print}'| awk '{printf "%s",$1}'`

which...
18,741
Posted By abinaya
Hi, Try the below command ls -ltr |...
Hi,

Try the below command

ls -ltr | head -1
3,989
Posted By abinaya
Hi, Try the command dirs
Hi,

Try the command

dirs
1,547
Posted By abinaya
Hi, Try the below command find . -name...
Hi,

Try the below command

find . -name "test" -exec ./run.sh '{}' \;
Showing results 1 to 25 of 25

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