Search Results

Search: Posts Made By: ganesh_248
26,268
Posted By Corona688
# List relevant files in the current directory ...
# List relevant files in the current directory
ls Daily_report_[0-9][0-9][0-9][0-9]_[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]_[0-9] |
# Feed it into the AWK programming language.
# splits each line...
26,268
Posted By Corona688
Okay. # List relevant files in the current...
Okay.

# List relevant files in the current directory
ls Daily_report_[0-9][0-9][0-9][0-9]_[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]_[0-9] |
# Feed it into the AWK programming language.
# splits...
26,268
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...
26,268
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
...
Showing results 1 to 4 of 4

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