Search Results

Search: Posts Made By: m.d.ludwig
14,489
Posted By Corona688
You get a useless use of cat award...
You get a useless use of cat award (http://partmaps.org/era/unix/award.html).

mailx user@some.machine < file
2,071
Posted By zaxxon
With GNU sed: $> cat infile bla bla bla...
With GNU sed:

$> cat infile
bla bla bla bla bla +
blob blob +
blip blip blip

would become

bla bla bla bla bla blip blip blip
$> sed -e :a -e '/\+$/ {N; s/\n/ /; ta}' infile
bla bla bla...
6,560
Posted By CarloM
GNU sed does - -i option.
GNU sed does - -i option.
3,086
Posted By otheus
Not a great approach. Try this instead: awk...
Not a great approach. Try this instead:

awk '{print $1,$3}' /tmp/prod_vfstab |
while read device mntpt; do
mount -F vxfs $device $mntpt
done

I separated LINE into the two variables so you...
Forum: OS X (Apple) 01-15-2011
5,909
Posted By Scott
Isn't that the same question you asked in your...
Isn't that the same question you asked in your previous thread (7 months ago)?

https://www.unix.com/red-hat/137954-find-word-multiple-level-files-linux.html
2,098
Posted By frank_rizzo
I don't suggest using NIS. If you want to...
I don't suggest using NIS. If you want to authenticate against AD there are commercial products available. Check out Unix & Linux Active Directory Integration and Authentication Tools from Quest...
1,756
Posted By Scott
As you seem to be having fun with pipes, what...
As you seem to be having fun with pipes, what harm would another one do?


tmp_tail=$(tail -2 ...... | head -1)


Some sed (which I'm sure could be simplified):

$ sed -n...
Forum: Solaris 01-04-2011
2,534
Posted By bluescreen
Your ce3 interface does not have a link to the...
Your ce3 interface does not have a link to the network as there is no "RUNNING" status. (see the other interfaces) If you correct this error I'm sure most of your issues will disappear.
8,470
Posted By rdcwayx
man cronolog : http://cronolog.org/
man cronolog : http://cronolog.org/
8,470
Posted By joeyg
What have you tried?
You have four requests, but do not show any work or even an attempt at solving this. We like to help, not write your code.
4,243
Posted By radoulov
Those are not shell limits, see above :) I...
Those are not shell limits, see above :)

I would avoid this one because of its inefficiency.

Hm,
I believe you mean:

find . -name '2[0-9][0-9][0-9][01][0-9]' -type d |
xargs -I{} find...
6,911
Posted By sandholm
This might help: ...
This might help:
https://sites.google.com/site/tfsidc/linux-tricks/processing-a-large-number-of-files

I suspect you're running into a shell limitation.
2,238
Posted By Scrutinizer
I used until instead of while which inverts the...
I used until instead of while which inverts the condition

---------- Post updated at 21:13 ---------- Previous update was at 21:11 ----------


Hi, this is in the latest POSIX specification:...
3,587
Posted By binlib
A simple invocation of uniq may be sufficient for...
A simple invocation of uniq may be sufficient for your need:
uniq -f1 -c
7,807
Posted By fpmurphy
ksh93 solution using regular expression with...
ksh93 solution using regular expression with backreference:

re='(<name>)(?*)(</name>)'

while read line
do
[[ $line == ${re} ]] && print ${line/${re}/\2}
done < infile
Showing results 1 to 15 of 15

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