Search Results

Search: Posts Made By: magnacrazy
7,129
Posted By magnacrazy
Thanks for your help.
Thanks for your help.
7,129
Posted By magnacrazy
Fixed it and it does work. I made my console...
Fixed it and it does work. I made my console screen wider and it had extra return charcters.

#!/bin/sh

var=$( echo "/vmfs/volumes/46000471-71d7c414-8f74-0013210cddc3/gistst/gistst.vmx" | cut...
7,129
Posted By magnacrazy
#!/bin/sh var=$( echo...
#!/bin/sh

var=$( echo "/vmfs/volumes/46000471-71d7c414-8f74-0013210cddc3/gistst/gistst.vmx" | cut
-d"/" -f5 )
7,129
Posted By magnacrazy
Your example worked like a charm. Thanks a...
Your example worked like a charm. Thanks a million! :)
7,129
Posted By magnacrazy
I got this message back when I tried your...
I got this message back when I tried your example,

cut: you must specify a list of bytes, characters, or fields
Try `cut --help' for more information.
test.sh: line 2: -d/: No such file or...
7,129
Posted By magnacrazy
Need help on parsing string
String example:

/vmfs/volumes/46000471-71d7c414-8f74-0013210cddc3/gistst/gistst.vmx

What I would like to do is create a variable and save gistst in it.


I thought if I could create an array...
Showing results 1 to 6 of 6

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