Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: eo29
835
Posted By eo29
Hi Bartus11, Many Thanks on your assistance...
Hi Bartus11,

Many Thanks on your assistance on this issue, that worked fine.

Kind Regards

Ed
835
Posted By eo29
Passing command as a function parameter
Hi All,

Just trying to implement the below shell script using AIX ksh shell.

myfunc {
eval "$*"
}

CMD='ls -la /etc/hosts | awk '{print $9"|"$5}''
myfunc $CMD

Keeping getting...
1,191
Posted By eo29
Thks guys, the last two did the trick. Many...
Thks guys, the last two did the trick.

Many Thanks for your help on this.
1,191
Posted By eo29
Thanks ygemici, but the {7} is doing a fixed set...
Thanks ygemici, but the {7} is doing a fixed set of characters at the beginning of the string, is there any way just to extract the last set of digits, without fixing the initial character set.
...
1,191
Posted By eo29
Quick Sed Question
Just want to know why when I do the following in sed, the required is not extracted.

echo "ab01cde234" | sed 's/[0-9]*$//'

result: ab01cde (Which is correct)

echo "ab01cde234" |sed...
934
Posted By eo29
Fanstastic.......now why didnt I think of that....
Fanstastic.......now why didnt I think of that. Many Thanks radoulov

---------- Post updated at 11:58 AM ---------- Previous update was at 11:32 AM ----------

radoulov,

The gsub(/cmi102...
934
Posted By eo29
Extracting a word from a variable
Hi Guys,

Need you quick assistance on the below, trying to extract a word from a variable

i.e. acmi101[space]acmi102[space]acmi103[space]acmi104

When i use the following code awk...
2,773
Posted By eo29
thks guys for your help on this, much...
thks guys for your help on this, much appreciated. Now I'm going to drown my sorrows in a vodka of awk, and see what I can do with the above.
2,773
Posted By eo29
Thanks guys, that is brilliant, but somethings...
Thanks guys, that is brilliant, but somethings the headers dont always match up, like the below

Available Assigned Used Max. Pct Total
Space Space pages Pct Util Sum
(MB) (MB) Util...
2,773
Posted By eo29
Ok what I am trying to achieve is that the...
Ok what I am trying to achieve is that the program would read the first 3 lines and then align the first columns of the first 3 lines together, and the same for the 2nd columns and so forth.

So...
2,773
Posted By eo29
Manipulating a header file using awk or sed
Hi Guys,

Is there a simple way of doing the below.

Available<spaces>Assigned<spaces>Maximum<spaces>Maximum<spaces>Page<spaces>Total <spaces>Used<spaces>Pct<spaces>Max. Pct<CR>...
2,354
Posted By eo29
thks guys.....u all are great.
thks guys.....u all are great.
2,354
Posted By eo29
Stripping out more than a space from a line, but keep single space.
Hi all,

Is there a way to perform the above, I am trying to strip out more than one space from a line, but keep the single space. See below output example.

My Name is test test2 test3 ...
3,436
Posted By eo29
Thks guys for the response, really appreciate it....
Thks guys for the response, really appreciate it. The sed command didnt work, but the awk did the trick. Thnks once again.
3,436
Posted By eo29
Thanks guys, but that didnt work, I am using the...
Thanks guys, but that didnt work, I am using the aix sed version, and the -i and -r options are not available, I tried both above commands with out the -i and -r options. no luck.
3,436
Posted By eo29
pattern matching lines using the date, and then joining the lines
Hi Guys,

Was trying to attempt the below using awk and sed, have no luck so far, so any help would be appreciated.

Current Text File: The first line has got an "\n", and the second line has got...
Showing results 1 to 16 of 16

 

Featured Tech Videos

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