Search Results

Search: Posts Made By: MadeInGermany
3,187
Posted By MadeInGermany
Good to know. Bash was first with brace...
Good to know. Bash was first with brace expansion, now ksh and zsh are ahead. Let's see when bash will catch up again.
BTW, Bash-4 has got a number + field alignment expansion:
echo {01..10}
01 02...
3,187
Posted By MadeInGermany
... or a loop, that correctly handles special...
... or a loop, that correctly handles special characters in file names, and can verify that the files exist:
for (( i=1; i<=10; i++ )); do
f=/path/to/files/$i.dat
[ -f "$f" ] && cp "$f" ./...
Showing results 1 to 2 of 2

 

Featured Tech Videos

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