Unix/Linux Go Back    

Showing results 1 to 6 of 6
Search took 0.03 seconds.
Search: Posts Made By: jrymer
Forum: Shell Programming and Scripting Linux 01-08-2013
Replies: 4
Views: 3,604
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...
Forum: Shell Programming and Scripting Linux 01-03-2013
Replies: 8
Views: 11,609
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...
Forum: UNIX for Dummies Questions & Answers Linux 07-27-2012
Replies: 4
Views: 797
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...
Forum: UNIX for Dummies Questions & Answers Linux 07-21-2012
Replies: 3
Views: 1,838
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...
Forum: Shell Programming and Scripting Linux 01-25-2006
Replies: 25
Views: 78,699
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
Forum: Shell Programming and Scripting Linux 07-16-2012
Replies: 4
Views: 587
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...
Showing results 1 to 6 of 6

 


All times are GMT -4. The time now is 12:04 PM.