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 Mike Lewis 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: *

  1. RajShekar

    How to concatenate multiple files in a script into a single file?

    The for statement is for PROC_DATE in `find /prod/home01/store/csa/data/data01/input/amerifee/ -name '[0-9][0-9][0-9][0-9][0-1][0-9][0-3][0-9]'|so rt -u`
  2. RajShekar

    How to concatenate multiple files in a script into a single file?

    Sorry....I donot want all the files just the files that I will get with the FOR statement, Thank You. :-)
  3. RajShekar

    How to concatenate multiple files in a script into a single file?

    All the files that I want are in the same directory, but the problem is I donot want to cat all the files in that directory.....Please let me know how to go about that...
  4. RajShekar

    How to concatenate multiple files in a script into a single file?

    I would like to have a script that concatenates multiple files in a folder into a single file.Any help is appreciated. Thanks. Something like this..... for PROC_DATE in `find path -name '*'|sort -u` do concatenate logic .... .... done
  5. RajShekar

    I am getting the following err. when trying to get a date 45 days befo

    MONTHDATE(){ # MONTHDATE nDays [format] typeset -i nDays=$1; format=$2 typeset -i localOffset=$(echo $TZ | sed 's![^-0-9]*\([-0-9]*\).*!\1!') TZ=X$((localOffset-24*nDays)) date $format } MONTHS_DATE="$(MONTHDATE -45 '+m%d')" Error:---- It is returning this value where as I am expecting...
  6. RajShekar

    I would like to get a return value 2 if command successful

    I want to assign rc=2 if ls command lists any files.
  7. RajShekar

    I would like to get a return value 2 if command successful

    I want the below statement to return the value 2 if the ls command returns any files? rc=$(rsh -l dmnida kdnidp02 "ls ${ZW_MONTHLY_PATH}${SD_FILE}.sum 2>/dev/null
  8. RajShekar

    please tell me what this statement returns ?

    Thanks a lot. I want this statement to return a value 2 if any files are returned in ls command? I would really appreciate if you could help me with this question.
  9. RajShekar

    please tell me what this statement returns ?

    Could somebody please explain this statement and what it returns? rc=$(rsh -l admin server1 "ls ${ZW_MONTHLY_PATH}${SD_FILE}.sum 2>/dev/null")
  10. RajShekar

    How to compare 2 dates of yyyymmdd format in a if statement?

    How to compare 2 dates of yyyymmdd format in a if statement? I am trying to compare two dates in a If condition like this and it does not work? if (( "$PROC_DATE" < "$MONTHS_DATE" )) then print "$MONTHS_DATE" fi
  11. RajShekar

    Getting date one month before today using Unix shell Script

    Thanks PHV, great answer.
  12. RajShekar

    Getting date one month before today using Unix shell Script

    The thread Thread80-850019 is using perl, but I would like a solution without using perl and instead using only UNIX script.
  13. RajShekar

    Getting date one month before today using Unix shell Script

    I want to get date one month before today using unix shell script in YYYYMMDD format?
  14. RajShekar

    Getting date one month before today using unix.

    How to get the date 30 days before today using unix scripting? The month changes and year changes shold be considered.

Part and Inventory Search

Back
Top