Search Results

Search: Posts Made By: Aleksejs
2,142
Posted By Aleksejs
Hi! That is because ls does not operate on...
Hi!
That is because ls does not operate on standard input - you have to feed it standard input as an argument - that's why you use xargs.
10,798
Posted By Aleksejs
Hmm... if I run touch abc_3.sql ab_4.sql...
Hmm... if I run
touch abc_3.sql ab_4.sql ab_2.sql a_5.sql acbd_1
ls | sort -nr
then I get:
acbd_1
abc_3.sql
ab_4.sql
ab_2.sql
a_5.sql
Pludi' variant seems more adaptable, of course.
10,798
Posted By Aleksejs
Hi! I think this should do the trick: ls |...
Hi!
I think this should do the trick:
ls | sort -nr | xargs exec
substitute exec with the proper command you need to actually execute those *.sql files
Showing results 1 to 3 of 3

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