Search Results

Search: Posts Made By: alfredo123
1,453
Posted By RudiC
Sorry, I don't understand what you are saying....
Sorry, I don't understand what you are saying. When applying my proposal to your sample input, I get{1:F01SAESVAV0AXXX0466020121}{2:O1011538070522LRLRXXXX4A0700005910650705221739N}{3:{108:MT101 001...
1,453
Posted By RudiC
Would this do? awk '/^{1:/ {LAST=$1} {print LAST,...
Would this do? awk '/^{1:/ {LAST=$1} {print LAST, NR, $0}' FS="}" OFS="}" file | sort -t"}" -k1,1 -k2,2n | cut -d"}" -f3-
1,453
Posted By Aia
Got Perl? perl -ne 'BEGIN{$/="\$\n"}; ($i) =...
Got Perl?

perl -ne 'BEGIN{$/="\$\n"}; ($i) = /^({[^}]*})/ and $r{$i} = $_; END{for(sort keys %r){print $r{$_}}}' alfredo123.file...
1,745
Posted By Don Cragun
If you're using a recent bash or a ksh newer than...
If you're using a recent bash or a ksh newer than its 1988 version as your shell, you could also use:
for i in Daily_XYZ_TEST_*.csv
do mv "$i" "${i/_XYZ_/_ABC_}"
done
1,745
Posted By bakunin
ahem: what you did was throwing a "sed"-command...
ahem: what you did was throwing a "sed"-command at the shell. Big surprise, being not "sed" the shell was confused. Talk japanese to any average middle-european and you are bound to get the same...
1,745
Posted By Don Cragun
First, there is no utility named rename that is...
First, there is no utility named rename that is callable from the shell on most systems. If you're talking about the perl rename function, it would be a good idea to state that you're having a...
Showing results 1 to 6 of 6

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