01-18-2008
Quote:
Originally Posted by
pulkit
Hello All,
I am getting error while passing a folder name that has space to the cmd line argument.
sh log_delete2.sh "/home/kumarpua/TESTARTIFACTS/atf-chix/ATF-subversion-dev/ssenglogs/A RM"
log_delete2.sh: line 17: cd: /home/kumarpua/TESTARTIFACTS/atf-chix/ATF-subversion-dev/ssenglogs/A: No such file or directory
expr: non-numeric argument
ls: /home/kumarpua/TESTARTIFACTS/atf-chix/ATF-subversion-dev/ssenglogs/A: No such file or directory
Can any one pls suggest how to ignore the space in folder name.....
Regards,
Pulkit
It might be that you need to replace the existing code in order to take care of this problem. Can you show the code that is doing this.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can any one tell me how to know the free space in perticular folder in unix.
size in bytes/MB.
thanks in adv.
spandu (7 Replies)
Discussion started by: spandu
7 Replies
2. Shell Programming and Scripting
hi
my folder name is below
FTP_DIR="/DATA/TEMP/PA Mthly and Qrty files"
But when i am using the varaible in my ftp shel script i am getting the error
'/DATA/TEMP/VA: The system cannot find the path specified
please advice.
thanks in advance
sam (2 Replies)
Discussion started by: sam99
2 Replies
3. UNIX for Dummies Questions & Answers
Hi , I was wondering if anyone knows any great ways for creating space in your Root Folder.
My root folder was created with only 247.7MB & I found out that its now full & I was initially wondering how important the "thumbnails Folder" was & if it was alright to delete their contenses as I noticed... (2 Replies)
Discussion started by: Browser
2 Replies
4. Shell Programming and Scripting
A solaris server with SAMBA share folder. The PC users created many folders with space on it, I want to find them out, but not list its subfolders.
For example, I have below folders
Copy of ABC/efg/xy
sa/Test again/xyt
If I use command: find . -type d |grep " " I will list 6 folders, but... (2 Replies)
Discussion started by: rdcwayx
2 Replies
5. UNIX for Dummies Questions & Answers
Please help ,
I am in an urgent need, Please help
nawk '{for(i=1;i<=NF;i++){printf("%s\n",$i)}}' filename | sed 's/.*com//' | nawk '/pdf/ {printf("F:%s\n",$0)}' | while read line; do mv $line /images/; done
the above script works for without spaces but,My path is also having some space... (3 Replies)
Discussion started by: umapearl
3 Replies
6. Shell Programming and Scripting
I just wrote a modsecurity rule that blocks execution on "cat /etc/passwd" from webshell. But when I use
cat /etc/passwd
it works. Ie when I add space after cat. What I need is a regular expression to ignore additional space than the first single space after cat. (2 Replies)
Discussion started by: anil510
2 Replies
7. Shell Programming and Scripting
Hi,
i have in a situation to get the variables which are having a "|" delimiter and each variable may or may not have spaces, so how can i skip the spaces on the string and print the string as it is.
For example:
line = "|Hello world|Hello|Hi Guys|
read x y z <<<$(echo "$line" | awk -F"|"... (5 Replies)
Discussion started by: tprabhaker
5 Replies
8. HP-UX
Hi,
What are the correct parameters to list folders size in MBs under a particular directory in HP-UX ?
I know and commands but cannot get the output of folder sizes in MBs. (4 Replies)
Discussion started by: mohtashims
4 Replies
9. Shell Programming and Scripting
Hi,
I currently use a script to extract *.deb files located in a Directory called
"/var/mobile/Media/Downloads"
The Problem is howver I want the script to ignore the folder:
"/var/mobile/Media/Downloads/New Debs and Files"
(it shall NOT decompile any of the files in that folder.
Here is... (2 Replies)
Discussion started by: pasc
2 Replies
10. Shell Programming and Scripting
I want to move a folder with spaces from one folder to another.
I have two folders like this,
1).RT_032-222 -4444-01/ 2). RT_032-555 -7777-01/
I want to move files from 2 to 1 through shell script.Here I want to assign this like a user defined variable like as Source branch... (2 Replies)
Discussion started by: kannansoft1985
2 Replies