Search Results

Search: Posts Made By: chapeupreto
2,026
Posted By chapeupreto
What about: echo "Date range on 5th May is...
What about:

echo "Date range on 5th May is between -010516 and 050516- please continue " | sed 's/.*\(-.*-\).*/\1/'
964
Posted By chapeupreto
If you need Lane, but not lane (i.e.:...
If you need Lane, but not lane (i.e.: case-sensitive matters)
sed '/Lane/d' input_file.txt > output_file.txt
3,392
Posted By chapeupreto
Hello cue You may use sed and tr for achieving...
Hello cue
You may use sed and tr for achieving this goal.
Try something like:

sed 's/^/"/ ; s/$/"/' file.txt | tr "\n" " " > newfile.txt
By doing that, newfile.txt has all the paths from...
28,530
Posted By chapeupreto
Hi there. Maybe you should use sed. Try doing...
Hi there.
Maybe you should use sed.
Try doing something like:

sed -i.bkp 's/^/filenameU/' your_input_file.txt

Is your columns delimited by tab or spaces?
In case of tabs, and, if you're...
12,175
Posted By chapeupreto
Hi folks. You're right. That's the key. ...
Hi folks.

You're right. That's the key.
Just for studying purposes, I've created two bash scripts using different for loop syntax for solving this problem.

Here we go:

...
Showing results 1 to 5 of 5

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