Search Results

Search: Posts Made By: classic
2,028
Posted By ahmad.diab
if you don't have the -i option on sed use PERL...
if you don't have the -i option on sed use PERL code below:

perl -i -wlpe 's/TRASH_MAX_SIZE:1024/TRASH_MAX_SIZE:2040/;' config.ini

:b::b:
2,028
Posted By bartus11
sed -i...
sed -i "s/TRASH_MAX_SIZE:1024/TRASH_MAX_SIZE:2040/" config.ini
3,526
Posted By jim mcnamara
You would/could probably never do what you...
You would/could probably never do what you describe with tr. tr works on a per character basis, not a group of characters (a string). Plus tr means translate, that means:
'change one character to...
2,220
Posted By Scrutinizer
Hi, I posted a sed alternative as well would...
Hi,
I posted a sed alternative as well would that work? What are you looking for?
2,220
Posted By Scrutinizer
Try: ls -l | awk '/^d/{split($NF,N,".");print...
Try:
ls -l | awk '/^d/{split($NF,N,".");print N[2]", "substr(N[1],1,1)}'
or
ls -l | sed -n '/^d/{s/.* \(.\).*\.\(.*\)/\2, \1/p}'
Showing results 1 to 5 of 5

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