Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: jamisar
  • Order by date
  1. jamisar

    Help with a bash script

    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 ]
  2. jamisar

    Removing lines from a data file

    sed -e '/^old/d;/^new/d' filename ----------- Ohne Intelligenz bist Du ein Fiasko, ohne Technik ein Amateur und ohne Herz eine Maschine. [ Wladimir Horowitz ]
  3. jamisar

    Mystery of the missing crontab file!!!!

    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 ]
  4. jamisar

    Whats wrong in this "awk" command

    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 ]
  5. jamisar

    Echo and cat together

    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...
  6. jamisar

    How can I sort (arrange) content of

    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 ]
  7. jamisar

    Attempting to capture CPU Panic Message Before Reset Occurs

    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 ]
  8. jamisar

    questions about /tmp

    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...
  9. jamisar

    appending files

    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 ]
  10. jamisar

    Skipping every other parameter

    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...
  11. jamisar

    How to use sed to this substitution?

    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 ]
  12. jamisar

    Not asking for Passwd from Console ???

    check also /etc/nsswitch.conf ----------- Ohne Intelligenz bist Du ein Fiasko, ohne Technik ein Amateur und ohne Herz eine Maschine. [ Wladimir Horowitz ]
  13. jamisar

    Not asking for Passwd from Console ???

    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 ]
  14. jamisar

    check if there is an file and then move it to another dir

    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 !
  15. jamisar

    how to detect more than 8Gb in Solaris 8

    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 !
  16. jamisar

    Shell - How to handle NULL parameters

    no chances: the caller of myshell.sh should handle this, don't use spaces for empty params, but a placeholder like the string 'empty'. the shell cannot make the difference between 100 200 " " 300 400 and 100 " " 300 400 500 ----------- when they don't ask you anymore...
  17. jamisar

    how to detect more than 8Gb in Solaris 8

    the disk partition is not completed, use 'format' to define partitions, then 'newfs' and 'mount' ----------- 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 !
  18. jamisar

    HELP CALCULATING THE TIME A JOB RUNS (TIME2 - TIME1)

    look: man time ----------- 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 !
  19. jamisar

    How to restore Solaris CDE

    what's the question ? ----------- 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 !
  20. jamisar

    how to determine whether a file is ascii or binary

    on an unix system: /bin/file filename will answers you. ----------- 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 !

Part and Inventory Search

Back
Top