Search Results

Search: Posts Made By: Ion_Shell
1,027
Posted By Skrynesaver
It attempts to eval the final character of the...
It attempts to eval the final character of the contents of $variable... probably not what you intended
cut -c <int> - returns the characters from the position int to the end of the string
...
26,341
Posted By Corona688
ls | awk -F_ '{ STR=$1; for(N=2; N<NF;...
ls |
awk -F_ '{ STR=$1; for(N=2; N<NF; N++) STR=STR"_"$N; T[STR]=1 } END { for(K in T) print K; }' |
while read LINE
do
cat ${LINE}_* > $LINE
...
26,341
Posted By Corona688
# List files in the current directory ls | #...
# List files in the current directory
ls |
# Feed it into the AWK programming language.
# splits each line apart $1,$2,...$NF on the _ character.
# Then puts it back together into STR, minus the...
281,282
Posted By Neo
Simple rules of the UNIX.COM forums:
RULES OF THE UNIX AND LINUX FORUMS

For the latest version of the community rules (the official community rules page), please visit here. (https://www.unix.com/misc.php?do=cfrules)


No flames,...
Showing results 1 to 4 of 4

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