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 strongm 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: pdagulb
  • Order by date
  1. pdagulb

    Sending mail

    Hi, mailx -s "subject" "EmailList" < logfile
  2. pdagulb

    Getting the file size from ls -l command

    ls -l|cut -c-36-40 Pdagulb
  3. pdagulb

    Getting the file size from ls -l command

    ls -l|awk 'print $5 }' pdagulb
  4. pdagulb

    script to compare files in a list with files in directory

    hello , I have done some mistakes as you see the correctedone #!/bin/sh #ls -alR > filelist in sample dirctory strcuture get initially contents of the #directory structure into filetestfile and load that load that file to test directory #where you are running script and befor running...
  5. pdagulb

    script to compare files in a list with files in directory

    Hello sorry, 1.there is some misalligment in above post after #!/bin/ksh hit an anter 2.missing backquote after second cat operation SANPDA
  6. pdagulb

    script to compare files in a list with files in directory

    Hello, Try this i am not confident that it is solution as required. Any way i havenot tested it properly.#!/bin/ksh #directory structure into filetestfile and load that load that file to test directory #where you are running script and befor running this script tmp_filelist=`cat ./filelist `...
  7. pdagulb

    Output redirection to top of file

    HEllo, As you said it the output is not consistent with some of commands and their options. AS a observed ls -l|cat - log.txt|tee log.txt isnot working for me,as it is overwritting the contents of file instead of add at beg.it seems there is some limit for line above which it is not working...
  8. pdagulb

    Output redirection to top of file

    Hello, This command which i have given doesnot redirect the some of the syntact errors in script output. that is why whenever there is some kind of error there the log.txt doenot contain any output. do this: 1>make your script to show correct output. 2>give the executable permission for your...
  9. pdagulb

    Output redirection to top of file

    Hello, Try this general format: output of the csh script|cat - file_used|tee file_used. for ex:if the command of your script islike this var=&quot;hello&quot; echo $var---say this is the output then use this: echo $var|cat - file_used|tee file_used if file_used say contains =...
  10. pdagulb

    Day of Year

    hello, sorry date+%j' gives the day of the year.
  11. pdagulb

    Day of Year

    try this also, but your question is wrong. %j doenot give you day of the year.but anyway it is giving something with trailing zero ans: date +'%j'|cut -c 2,3 or date +'%d' which gives the date. Regards Santosh.K.B
  12. pdagulb

    replacing text in multiple directories/files

    Hello try this, this works for all kind of files in all working dir and subdirctories except source file in working dir. we can modify it to work ony for subdirectory files and not for pwd. #!/bin/ksh #script to search through all the files in the subdirctories. find . -type f >subdir_file...
  13. pdagulb

    Sequence files

    Hello oznasuer, seqfile contains 5995 5996 5997 5998 5999 6001 6002 #!/bin/ksh #Script to find the missing sequence in file of numerals tmpfile=`cat seqfile` tmpfile2=`cat seqfile` flag=0 echo the missing sequence is for num in $tmpfile do tmpnum=$num tmpnum=`expr $tmpnum + 1 ` for...

Part and Inventory Search

Back
Top