Search Results

Search: Posts Made By: srattani
2,988
Posted By elixir_sinari
sed -n...
sed -n '/.*<ACCOUNT_ID>\([^<][^<]*\)<\/ACCOUNT_ID>.*/s//\1/p' file
2,988
Posted By guruprasadpr
Hi $ sed -n...
Hi

$ sed -n '/ACCOUNT_ID/{s/.*<ACCOUNT_ID>//;s/<\/ACCOUNT_ID>.*//;p;}' file
123456
654321

Guru.
1,844
Posted By Corona688
You're taking my example way too literally. ...
You're taking my example way too literally. "filename >> outname 2> varfile" was outside the awk statement I showed you and certainly shouldn't be inside yours. (The > "/dev/null" belongs inside,...
1,493
Posted By ahamed101
Try this for file in * do cp $file...
Try this


for file in *
do
cp $file `echo $file | sed 's/CRDT/crdt_lon/'`
done


@bash-o-logist
The code you gave didn't work for me. I have a solaris box.

regards,
Ahamed
Showing results 1 to 4 of 4

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