Search Results

Search: Posts Made By: m.d.ludwig
14,285
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
1,951
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,484
Posted By CarloM
GNU sed does - -i option.
GNU sed does - -i option.
3,021
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...
2,058
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,713
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: OS X (Apple) 01-15-2011
5,813
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
Forum: Solaris 01-04-2011
2,501
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,389
Posted By rdcwayx
man cronolog : http://cronolog.org/
man cronolog : http://cronolog.org/
8,389
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,147
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...
2,214
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:...
6,860
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.
3,527
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
6,989
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 09:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy