Search Results

Search: Posts Made By: davidtd
1,258
Posted By vgersh99
$ echo 'abc def' | nawk...
$ echo 'abc def' | nawk '{printf("[%-12s][%-15s]\n", $1, $2)}'
[abc ][def ]
8,734
Posted By Chubler_XL
Try using the \b word boundries like this: ...
Try using the \b word boundries like this:
egrep "\ba\b|\bword\b" files
16,108
Posted By frans
You can simply add html tags in your echo...
You can simply add html tags in your echo statements.
Don't forget to add echo statements for header and footer.
If you use variables for the tags, you can choose between plain text or html by...
16,108
Posted By pseudocoder
There are may ways to accomplish that. One...
There are may ways to accomplish that.

One way would be like frans already suggested, I fully agree with him.
One could also afterwards create a html with appropriate awk/sed commands from the...
8,734
Posted By Chubler_XL
Perhaps the debug output line should have been: ...
Perhaps the debug output line should have been:

echo egrep \""${ARR
}"\" $FILE

Giving:$ ./script.sh

egrep "a|b|c|d" file1
egrep "e|f" file2
egrep "g|h|i|j|k|l" file3

$
8,734
Posted By Corona688
That doesn't work because "a|b|c" is not in...
That doesn't work because "a|b|c" is not in quotes. It has to be, or the shell assumes you're running egrep a | b | c

It freezes because 'egrep a' is not given a filename and tries to read from...
8,998
Posted By ctsgnb
Give a try with : awk -v d1="${date1}" -v...
Give a try with :
awk -v d1="${date1}" -v d2="${date2}" '$0~d1{p=1} $0~d2{p=0} p' test.log >> tmp.log
Showing results 1 to 7 of 7

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