Search Results

Search: Posts Made By: madhu_aqua14
6,136
Posted By madhu_aqua14
expr command
hi
this is the script

for i in `ls q*.txt`
do
l=0
tc=0
var=`tail -1 $i`
l=`echo $var | cut -d'|' -f2`
tc=`expr $tc+$l`
done

every time it gives the first answer
i.e if l =2
for the...
6,136
Posted By madhu_aqua14
expr command
hi guys....


i hava a command expr... where i m adding a value in a loop
like
Tc=`expr $Tc\+ $l`
where
Tc is declred as a variable and every time l contains a new vaue
if
Tc =0...
7,620
Posted By madhu_aqua14
re: prob with rm
hi ....

it has
drwxrwxrwx 2 aabb developer 81 Mar 5 06:20 abc

files are presen in abc
-rwxrwxrwx 1 aabb developer 16 Mar 5 04:46 xx_c_050307044610.dat

the commad i give...
7,620
Posted By madhu_aqua14
rm cmd
[QUOTE=matrixmadhan]what are the permissions that are currently set to the directory / files under consideration ?

Did you try after giving the permissions ?

i gave every read write execute...
7,620
Posted By madhu_aqua14
re: rm cmd
i have given the permissions to files in it to the directoy or folder and also the script
7,620
Posted By madhu_aqua14
re: prob with rm
i m executing the script to remove from a directory in iacora1..
7,620
Posted By madhu_aqua14
re :prob with rm
it doesnt give any error code
just gives as "550 Remove directory operation failed"

when we give echo $? also the same o/p is given
7,620
Posted By madhu_aqua14
hi probs with rm command
hi guys...

i m using rm *.zip or rm -rf *.zip while removing from a server path recursively,
i m getting "Remove directory operation failed."

if i use rm* .zip
i m getting as invalid...
21,034
Posted By madhu_aqua14
appending timestamp to a file
hi freinds,

i need to append timestamp to a file name to make it unique...
do we have any command in unix to do

please help :confused:
7,831
Posted By madhu_aqua14
checking spaces
hi matrix

here is the file name
3`_1_01_au.zip

and the code

ls *.zip | while read file
do
echo $file
echo "$file" | sed "s/[ \`]//g"
mv $file `"$file" | sed "s/[ \`]//g"`
done
...
7,831
Posted By madhu_aqua14
finding space in file name
hi matrix...

plz cud u explain the command

mv $file `echo "$file" | sed "s/[ \`]//g"`

also when i execute this command
we got error
unexpected EOF while looking for matching ``'
...
7,831
Posted By madhu_aqua14
checking for a space in a file name
hi members...

another new probs...
i need to check all the zip files in the server and check for a space or "`" in the file name and if found need to remove them and form a zip file.

i tried...
2,484
Posted By madhu_aqua14
calling a script from another
hi ...


i need to call a unix script depending up on some condition from a unix script which is already running.


please help
2,436
Posted By madhu_aqua14
Re:copying a file to another
hi matrix...

thanks for the solution.. it worked instantly with out any difficulty...i asked other than PERL becoz..

i know PERL but not unix commands when evr i search in google it wud give me...
2,436
Posted By madhu_aqua14
copying a file to another
hi group...

needed some help regarding this requirement

actually we have a set of zip files in a server

we have two types of zip files one as usual .zip extension and one with .zip_m...
4,283
Posted By madhu_aqua14
regarding replace a part of a string
hi all.

i have a file name like abcd_vbnh.a_p
i have to copy it as abcd_vbnh.a every time...

in unix not in perl please
Showing results 1 to 16 of 16

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