Search Results

Search: Posts Made By: montana24
1,986
Posted By montana24
It appeared to be different shell versions. The...
It appeared to be different shell versions. The was a bug in the older one. Upgrading the shell fixed it. Thanks!
1,986
Posted By montana24
Extracting field from array
I have a problem with the following lines of code:

SaveIFS=$IFS
IFS="/"
declare -a Array=($1)#take unix path, split by '/'
website=${Array[4]} #stores website...
9,155
Posted By montana24
Thanks ---------- Post updated at 10:08 PM...
Thanks

---------- Post updated at 10:08 PM ---------- Previous update was at 08:17 PM ----------

How do I assign that to a variable (eg. file owner)?

---------- Post updated at 10:36 PM...
9,155
Posted By montana24
extract columns from command output
I need to extract information (for example, file owner, directory path, etc). However, the code below does not work? What is wrong?

find /usr/local/www/apache22/data/dev/chown_test -ls
for i in...
Showing results 1 to 4 of 4

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