Search Results

Search: Posts Made By: jrymer
6,732
Posted By Corona688
You already know what [ ] do if you've used...
You already know what [ ] do if you've used if-statements before. It's actually an independent thing, if just makes use of it. It returns success when the statement within is true, or error when...
20,376
Posted By radoulov
I do not understand how to split a string at...
I do not understand how to split a string at whitespace and then get it into an array.With bash >= 4, if I recall correctly:

$ _string='a b c'
$ read -a _array <<< "$s"
$ declare -p _array...
1,233
Posted By neutronscott
I cannot figure out what is in those arrays. ...
I cannot figure out what is in those arrays. Parsing ls into an array, and find into a string variable, is very likely to eventually break. It is best to operate using NUL delimited filenames...
2,621
Posted By Lem
This is the only wrong one. It assigns only 'one'...
This is the only wrong one. It assigns only 'one' to the variable ARRAY... then calls 'two' as a command with 'three' as its parameter.



Bad sustitution? Where does it come from?
Oh! This is...
1,073
Posted By alister
If I understood you correctly, your problem is...
If I understood you correctly, your problem is that the members of the archive are using an absolute path and you want them to be relative, so that when you extract them the newly-created pathnames...
87,172
Posted By linuxpenguin
i guess g is ignored by ls, the below one will...
i guess g is ignored by ls, the below one will work anyway

ls -1t|tail -1

1 lists the output of ls as a column
t sorts it by time
tail -1 lists the last item in the list
Showing results 1 to 6 of 6

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