hi all
how do i check if a string consist of any space by using shell script.
i have the following code
while test -z $string
do
//prompting for another string if string is length 0
done
when i type "a b" it give me an error
test: a: binary operator expected
thanks (7 Replies)
Hi,
I need to add a condition in a script. The script is executed only if there is free 8 Gigas space.
I know
if then
fi
I don't know how to write the condition on free space
Thanks
:) (1 Reply)
Hi,
I have a question regarding finding free space on the disk of a solaris machine.
Many mount points are available in my machine. Right now i am using
df -b option to get the free disk space available.
I have an assignment to check free space on the disk.
I pass the directory as a... (6 Replies)
I have a directory, and I write some files in to that. How to throw the error exception when my directory is full. i.e. there is no disk space (2 Replies)
Hi All,
pls go thru the below code and help me.
when i check "df -k" in my solaris system .. it will show like below..
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t0d0s3 20171281 2319266 17650303 12% /var
/dev/dsk/c0t0d0s4 10085260 443854... (15 Replies)
Hi,
I want to check if the given line from a text file has a spaces in between. if it does, then I want to add '"' double quotes at the beginning and end of the line. Otherwise leave the line as it is.
For example, below is the sample content from my file.
$cat file.txt
test1
test2... (6 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Need to check the disk space and if any portion disk space usage high then write to one file, later will... (5 Replies)
I am trying a script which will alert if disk space crosses some threshold, i googled it and got some scripts already, but they are not working with my server.
The problem is, my filesystem names are big, so the sizes are moving to the second line. just like below
any ideas? thanks in advance... (8 Replies)
Hi,
When i check the cifs = cifs i could get two dupliates of cifs present in unix. so the system couldnt check. could you please let me know how to make the change code to find out the unique one in the line 6.
1NTBD="/ft/sv/ss"
2check_ntfs()
3{
4 # Check that the necessary NT areas are... (1 Reply)