Search Results

Search: Posts Made By: INNSAV1
2,043
Posted By INNSAV1
Hi I did try that but it gives me an error. ...
Hi

I did try that but it gives me an error.

Example. I use USA a/Neil.jpg

Then I get an error saying USA file directory Not found

Could you please help me with why this is hahappening
...
2,043
Posted By INNSAV1
Finding size of files with spaces in their file names
I am running a UNIX script to get unused files and their sizes from the server. The issue is arising due to the spaces present in the filename/folder names.Due to this the du -k command doesn't work...
14,237
Posted By INNSAV1
Hi Ravindra, Thanks a lot but I do not think...
Hi Ravindra,

Thanks a lot but I do not think this helps. I already have a code format in which I need to fit my code. This would be rewriting the entire code which I cannot do.

Is it not...
14,237
Posted By INNSAV1
Hi Ravindra, Actually no. All I need is...
Hi Ravindra,

Actually no. All I need is this:

# start a loop where all files are considered one by one do
for file in `find . -type f -print | cut -c 3- }/g'`
# get the file name from this...
14,237
Posted By INNSAV1
sed command
for file in `find . -type f -print | cut -c 3- | sed 's/ /#}/g'`
do
file2=`echo $file | sed 's/#}/ /g'`
file3=`echo $file | sed 's/#}//g'`
size=`du -k $file3`
result=`grep -c "$file2"...
14,237
Posted By INNSAV1
Sed- Replace space in filename by a \
`echo $file | sed 's/ / /g'`


Hey guys I want help in converting the spaces in my file names to '\ ' .

Example:
UK maps --> UK\ maps

Could someone please help me.

I have tried the...
Showing results 1 to 6 of 6

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