Search Results

Search: Posts Made By: fubaya
6,730
Posted By fubaya
Neither sort will work if you get more than 9...
Neither sort will work if you get more than 9 files unless the single digit numbers have a 0 before their number (01... 09, etc)

(examples)
# touch file{1,2,5,10,15,20}.log
# ls *.log| sort -u |...
6,787
Posted By fubaya
Scrutinizer's is better, but tr -d '\n' is often...
Scrutinizer's is better, but tr -d '\n' is often handy to know.
# ping -c 1 google.com | grep 'PING' | cut -d'(' -f2 | cut -d')' -f1 | tr -d '\n'
74.125.65.104#
5,001
Posted By fubaya
You're definitely better off learning the long...
You're definitely better off learning the long way, but here's a shorty...tee file.a.b.{A,B,C,D}.r < file.a.b.c-d.rOr, same thing but slightly longer and easier to understand:
cat file.a.b.c-d.r |...
Showing results 1 to 3 of 3

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