boria, this will only work if the file is sorted :(
try
sed -ne '/2003-01-29/,/2003-01-30/p' filename -----------
Ohne Intelligenz bist Du ein Fiasko,
ohne Technik ein Amateur und
ohne Herz eine Maschine.
[ Wladimir Horowitz ]
sed -e '/^old/d;/^new/d' filename -----------
Ohne Intelligenz bist Du ein Fiasko,
ohne Technik ein Amateur und
ohne Herz eine Maschine.
[ Wladimir Horowitz ]
normally crontabs are in /var/spool/cron/crontab(s) -----------
Ohne Intelligenz bist Du ein Fiasko,
ohne Technik ein Amateur und
ohne Herz eine Maschine.
[ Wladimir Horowitz ]
if ( $1 ~ /^A/ || $1 ~ /^O/ || $1 ~ /^R/ || $1 ~ /^S/ ) -----------
Ohne Intelligenz bist Du ein Fiasko,
ohne Technik ein Amateur und
ohne Herz eine Maschine.
[ Wladimir Horowitz ]
mybe is /t a tab
on solaris i use printf instead of echo
(printf "\t\tyour title\n\n";cat yourfile) | lp ....
OR (this only with sed -f)
put in scmd:
------------------begin
1i your title
--------------------end
MB: the empty line at end is NEEDED.
before 'your title' you...
1) make on all entries the same format
prepend _ to the lines beginning by [0-9]
:%s/^[0-9].*/_&/
2) enter
:%!sort -k 1.2
3) delete the inserted _
:s/^_// -----------
Ohne Intelligenz bist Du ein Fiasko,
ohne Technik ein Amateur und
ohne Herz eine Maschine.
[ Wladimir Horowitz ]
an idea:
define a wrong boot device, it will no more
auto-reboot. -----------
Ohne Intelligenz bist Du ein Fiasko,
ohne Technik ein Amateur und
ohne Herz eine Maschine.
[ Wladimir Horowitz ]
let tmp in root.
make a big enougth /
and let also /usr in root. (to save space)
/tmp is used in boot process before the oder slices
consulting /etc/(v)fstab, are mounted.
for sol8 2gb root should be OK.
NOTA: swap is on slice 0, don't try to change this,
else you get problems. -----------
Ohne...
in APPEND:
case x$1 in x) cat file[1-6] >appended_files
;; xr) cat `ls -r file[1-6]` >appended_files
;; esac -----------
Ohne Intelligenz bist Du ein Fiasko,
ohne Technik ein Amateur und
ohne Herz eine Maschine.
[ Wladimir Horowitz ]
first purge ", then print it:
echo "K B Z D E K \"G,\" M O" | sed -e 's/"//;s/\([A-Z]\) \([A-Z]\) \([A-Z]\) \([A-Z]\) \([A-Z]\) \([A-Z]\) \([A-Z],\) \([A-Z]\) \([A-Z]\)/\9 \7 \5 \3/'
-----------
Ohne Intelligenz bist Du ein Fiasko,
ohne Technik ein Amateur und...
on your exemple, in sed:
Q is a space!!
s/^\(.*\)Q-\([a-z]*[a-z]\)\([0-9]*[0-9]\)Q\(.*\)/\1 -B \2\2=\3 \4/ -----------
Ohne Intelligenz bist Du ein Fiasko,
ohne Technik ein Amateur und
ohne Herz eine Maschine.
[ Wladimir Horowitz ]
check also /etc/nsswitch.conf -----------
Ohne Intelligenz bist Du ein Fiasko,
ohne Technik ein Amateur und
ohne Herz eine Maschine.
[ Wladimir Horowitz ]
console, you mean single-user ?
you are using nis or yp ?
you have no user in /etc/passwd or /etc/shadow. -----------
Ohne Intelligenz bist Du ein Fiasko,
ohne Technik ein Amateur und
ohne Herz eine Maschine.
[ Wladimir Horowitz ]
use the old test:
[ -f $dir/$name ] && do the job
change -f to -s if the file should not be empty
read: man test -----------
when they don't ask you anymore, where they are come from, and they don't tell you anymore, where they go ... you'r getting older !
i allways make the partition by hand, to prevent
stupid defaults and computing mistakes :( -----------
when they don't ask you anymore, where they are come from, and they don't tell you anymore, where they go ... you'r getting older !
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.