Search Results

Search: Posts Made By: s0lll0s
6,355
Posted By s0lll0s
s0lll0s:Desktop S0ll0s$ set -- `tail -9 tst | awk...
s0lll0s:Desktop S0ll0s$ set -- `tail -9 tst | awk '{print$2}'`
s0lll0s:Desktop S0ll0s$ echo $*

s0lll0s:Desktop S0ll0s$ set -- `tail -9 tst | awk '{print$2}'`
s0lll0s:Desktop S0ll0s$ echo $*
...
6,355
Posted By s0lll0s
guid=`tail -n 10 $log | sed...
guid=`tail -n 10 $log | sed '/ClientUserinfo/!d;s/.*cl_guid\\//;s/\\.*//'`
produces this error:
sed: 1: "/ClientUserinfo/!d;s/.* ...": bad flag in substitute command: '\'
and your last example...
6,355
Posted By s0lll0s
sed: 1: "/ClientUserinfo/!d;s/.* ...": bad flag...
sed: 1: "/ClientUserinfo/!d;s/.* ...": bad flag in substitute command: '\'


tried something like that before....
6,355
Posted By s0lll0s
This works. tail -n 10 $log | sed...
This works.

tail -n 10 $log | sed '/ClientUserinfo/!d;s/.*cl_guid\\//;s/\\.*//' | while read
do
echo "$REPLY"
done
echo "$REPLY"echoes...
6,355
Posted By s0lll0s
THX to ALL of you, seems to work now! ...
THX to ALL of you,
seems to work now!

---------- Post updated at 07:49 PM ---------- Previous update was at 07:44 PM ----------

next Problem :D
tail -n 10 $log | sed...
6,355
Posted By s0lll0s
thx all for the replys, will test it in next...
thx all for the replys, will test it in next time!

---------- Post updated at 03:58 PM ---------- Previous update was at 06:57 AM ----------

@ctsgnb:
$newline loooks like this (if i want to...
6,355
Posted By s0lll0s
[BASH/SH] Regex/Rematching Problems [RESOLVED]
Hi anyone,
since Sunday I try to create a schellscript that reads the last 10 lines of text out of a log and parses the guid's of the entrys in there.
The log looks like this:
ClienUserinfo: ......
Showing results 1 to 7 of 7

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