Search Results

Search: Posts Made By: aoussenko
1,489
Posted By aoussenko
How to parse a file?
Hi guys
I have a very long file which looks like this:
y893
89:send prctmgr exit
106:bas_services_dwn
--------------------------------------------------
y895
90:send prctmgr exit...
1,492
Posted By aoussenko
Dereferencing variable inside egrep call
Hi guys
I am trying to dereference a variable inside 'egrep -v ' command and getting a 'egrep: syntax error' :

$ echo $exclude_list
ts584d hf584db
for i in `echo $exclude_list`; do
egrep...
1,206
Posted By aoussenko
Vi command
Hi guys, does anybody know what the following command means when it is typed after ":" in vi editor:

:182,361d181

I know what 182,361d does (deletion lines 182 till 361) but not sure what the...
1,818
Posted By aoussenko
Thanks a lot. You have made my day :) It...
Thanks a lot.
You have made my day :)
It worked great !
1,818
Posted By aoussenko
Thanks a lot. The only problem is that my...
Thanks a lot.
The only problem is that my shell does not support '-E' option :(
1,818
Posted By aoussenko
'grep' command
Hi guys,
I need some help with 'grep' command.

I am trying to grep number 207 from the file which has other numbers which include 207 as a part of it.
for example 11207 20723123 23207434...
3,553
Posted By aoussenko
ksh PS4 variable assign to `date` output
Hi guys,
Is there a way to assign curent time to PS4 variable in ksh. My goal is to have each line produced by 'set -x' command to have a time stamp.
Here is my code:

$cat test...
2,545
Posted By aoussenko
Thanks a lot, guys...
Thanks a lot, guys...
2,545
Posted By aoussenko
How to time stamp executed commands?
Hi guys,
I am executing a pretty long ksh script and need to time stamp every command which runs inside.
Unfortunatly 'echo date' is not the option here.
May be someone knows another way or...
1,830
Posted By aoussenko
Perl trace setup
Hi guys,
does anybody know if there is a way to set trace in Perl for every executed command similar to what we get when running
set -x at the begining of ksh script ?

Perl -d is an...
928
Posted By aoussenko
Thanks a lot guys!
Thanks a lot guys!
928
Posted By aoussenko
Pattern matching
Hi guys
I am trying to create a regular expression to match a word with the following pattern:
any letter(one or more occurence) followed by a digit(one or more occurence) followed by any...
1,272
Posted By aoussenko
Thanks a lot pamu. It worked as a charm :)
Thanks a lot pamu. It worked as a charm :)
1,272
Posted By aoussenko
Thanks a lot pamu, but I keep getting the...
Thanks a lot pamu, but I keep getting the following message when I am running the grep:
"grep: Not a recognized flag: A"
It looks like my shell (ksh88) does not take it... :(
1,272
Posted By aoussenko
How to extract certain lines from a file?
Hi guys
I have a several thousands line file in the following format:
n817
--------------------------------------------------
n842
--------------------------------------------------
n877...
1,065
Posted By aoussenko
Thanks, I cannot beleive I have missed it
Thanks, I cannot beleive I have missed it
1,065
Posted By aoussenko
regex question
Hi guys,
I am trying to "grep" or "egrep" the following entry out of the file using regex:
MACCDB1 or MACCDB2
The problem is that the file might contain other entries which start with "MACCDB"...
1,599
Posted By aoussenko
Thanks a lot. :)
Thanks a lot. :)
1,599
Posted By aoussenko
how to sort inside awk
Hi guys
I have a problem trying to sort output produced with the help of 'Awk'.
After "grepping" the pattern out of the file and sorting it, sort command acts a little strange:
$ grep -w -n -i...
1,179
Posted By aoussenko
thanks a lot to all of you.. :)
thanks a lot to all of you.. :)
1,179
Posted By aoussenko
how to sort lines in the string
Hi guys,
I am trying to sort numbers in the string in descending order but for some reason sort fails.

n129$ echo "81 240" | sort -r
81 240
n129$

I am not sure what am I doing wrong. Is...
1,148
Posted By aoussenko
Thanks a lot
Thanks a lot
1,148
Posted By aoussenko
regex question
Hi guys,
I have a file in the following format:
cmpr5551
cmpr6002
cmpr93
anne 5454
bbro 434
cmprsvc
cmprsvc7
ffgi55
vefe99
cmprsvc8
cmprsvc9

I need to "grep" only the entries which...
1,491
Posted By aoussenko
Thanks
Thanks
1,491
Posted By aoussenko
test for a blank string
Hi guys
I am performing a simple test for a blank string with the following code:
if [[ ! ${user_input} =~ [^[:space:]] ]] ; then
echo "Blanks are NOT a valid input "
return 1...
Showing results 1 to 25 of 235

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