Search Results

Search: Posts Made By: oraclermanpt
1,181
Posted By rdrtx1
awk ' {col1[$1]=$1; for (col=2; col<=NF; col++)...
awk '
{col1[$1]=$1; for (col=2; col<=NF; col++) sum[$1, col]+=$col}
END {
for (i in col1) {
printf i;
for (j=2; j<=NF; j++) printf("%s%5d", OFS, sum[i, j]);
print "";
}...
1,001
Posted By MadeInGermany
No edge cases. You put back what you matched too...
No edge cases. You put back what you matched too much.
--
The /g option for multi-substituion on the same line is not needed:
echo 'aaaa$bbbb.cccc$dddd.eeee' | sed 's/\$.*\././'
echo...
1,001
Posted By Scrutinizer
This works only once per line, so the g can be...
This works only once per line, so the g can be left out.
sed 's/$.*/.jsp/'

to make it work one or more time per line, you could try:
sed 's/$[^.]*//g'
1,001
Posted By MadeInGermany
Any number of characters: .* sed "s/$.*\././"...
Any number of characters: .*
sed "s/$.*\././" Only the literal . needs a \ escape.
The literal $ can have one for clarity, but then I'd put the sed script in 'ticks'.
sed 's/\$.*\././'
909
Posted By rovf
grep -vF '$' demo.txt or, if you hate typing...
grep -vF '$' demo.txt

or, if you hate typing upper-case characters

fgrep -v demo.txt
909
Posted By Aia
grep -v '\$' demo.txt sed '/\$/d' demo.txt...
grep -v '\$' demo.txt

sed '/\$/d' demo.txt

awk '!/\$/' demo.txt

ruby -ne 'print unless /\$/' demo.txt
ruby -pe 'next if /\$/' demo.txt
4,292
Posted By LND
Hello Oraclermanpt, This is how it goes, the...
Hello Oraclermanpt,

This is how it goes, the syntax of the command would be following

ssh <Optons> <username@IP/hostname> "Commands needs to be executed"

Provide Error/standOutput of the...
3,902
Posted By agama
Those are unix timestamps -- number of seconds...
Those are unix timestamps -- number of seconds past midnight January 1st, 1970. The first timestamp in your post is 2012/02/18 21:36:12.
Showing results 1 to 8 of 8

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