Search Results

Search: Posts Made By: rahulsk
1,353
Posted By RudiC
So - you want to replace a space with the 1 -...
So - you want to replace a space with the 1 - not adding one. Arrange for the replacement:
sed 's/\(.\{13\}\) /\11/' file
3,974
Posted By Don Cragun
Yes, there is a way to do it. Do it exactly as I...
Yes, there is a way to do it. Do it exactly as I showed you in post #2 in this thread.
9,553
Posted By disedorgue
Hi, In bash with pipeline work under many...
Hi,
In bash with pipeline work under many conditions, just a silly example to present bash pipeline:
In general, not work by default:
$ while read line; do echo $line | IFS="," read dbt_acct...
9,553
Posted By RudiC
This works because the fourth field of the first...
This works because the fourth field of the first line is empty; that loop prints the empty string "" immediatedly followed by "home". With any string in he first line's fourth field it would print...
9,553
Posted By Don Cragun
Try: while IFS=, read -r dbt_acct val_dt crncy...
Try:
while IFS=, read -r dbt_acct val_dt crncy AMT dbt_GOP
do
print "$AMT"
done <abc.txt
9,150
Posted By RudiC
How aboutfind . ! \( -perm -u=w -o -perm -g=w \) ...
How aboutfind . ! \( -perm -u=w -o -perm -g=w \) to print files that have either user's or group's write bit missing?
14,514
Posted By Scrutinizer
I got a request to explain the sed statement in...
I got a request to explain the sed statement in post #4:


-e :a # define label a
-e '/|$/{ # if the last character is a vertical bar, then
$!N # if it is not the last line...
1,129
Posted By RudiC
Please use code tags as required by forum rules! ...
Please use code tags as required by forum rules!

Does your cut provide the --complement option?cut -c$a --complement one.txt
xyz 33 skfo 4r443
sfs bcd sd fsdf sdfd
abc c 33 abc dsaf
Forum: Red Hat 10-12-2015
1,059
Posted By RudiC
That depends on the system and shell you use....
That depends on the system and shell you use. With a recent bash, shopt -s extglob
ls -la !(MIS*)
might work.
Forum: Red Hat 10-12-2015
1,059
Posted By Don Cragun
Just using standard shell features, you can get...
Just using standard shell features, you can get what you want with:
ls -l [^M][^I][^S]* M[^I][^S]* [^M]I{^S]* [^M][^I]S* MI[^S]* M[^I]S* [^M]IS* 2>/dev/null
With some shells with some non-standard...
Showing results 1 to 10 of 10

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