Search Results

Search: Posts Made By: axed
1,483
Posted By Scrutinizer
Like this? for i in *template*; do sed...
Like this?
for i in *template*; do
sed 's/XXXXX|YYYYY/70|AAPL/' "$i" > "${i%%_*}_abc.twj"
done
2,015
Posted By bartus11
Sed needs alot of escaping.. sed...
Sed needs alot of escaping.. sed 's/\(.\{4\}\)\(.*\)/\2\1/' file Which is one of the reasons to use Perl ;)
2,015
Posted By bartus11
This should work: perl -pe 's/(.{4})(.*)/\2\1/'...
This should work: perl -pe 's/(.{4})(.*)/\2\1/' file
Showing results 1 to 3 of 3

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