Search Results

Search: Posts Made By: naderra
3,190
Posted By naderra
sed - print only the chars that match a given set in a string
For a given string that may contain any ASCII chars, i.e. that matches .*,
find and print only the chars that are in a given subset.

The string could also have numbers, uppercase, special chars...
2,017
Posted By naderra
Hi, $ echo...
Hi,

$ echo '632413741610252847552619172459483022433027602515212950543016701812771409213148672112' | sed 's/../& /g' | xargs -n 3
63 24 13
74 16 10
25 28 47
55 26 19
17 24 59
48 30 22
43 30...
2,017
Posted By naderra
G'day! fold? paste? $ type -a fold...
G'day!

fold? paste?

$ type -a fold paste
fold is /usr/bin/fold
paste is /usr/bin/paste

$ man fold paste

both are part of coreutils, ... Wow!

I don't recall knowing these handy...
2,017
Posted By naderra
G'day, Thanks to all of you for your very...
G'day,

Thanks to all of you for your very prompt replies.

A true pack of wizards ... the lot of you! ;-)

Particular thanks go to Yoda as just last night my 6 y/o daughter and I were humming...
2,017
Posted By naderra
sed regexp teaser
G'day,

Here's a teaser for a sed guru, which I surely am not one, as even my
basic sed skills are rusted from years of not practising ... lol

Ok ... we have a string of digits such as:
...
Showing results 1 to 5 of 5

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