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 Wanet Telecoms Ltd 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: annay121
  • Content: Threads
  • Order by date
  1. annay121

    Use of SCP in automated scripts

    I have a shell script using ksh which is supposed to transfer file from one Unix server to another using scp. The script is automated using Autosys. Have heard about some authentication public-private keys which would have to be used but am not clear on it. Any help would be great. Thanks
  2. annay121

    Using functions in Scripting

    I would like to put the following lines of code in a function: LINE_COUNT=`wc -l ${LOCAL_DIR}/FileList.txt` COUNT=`echo $LINE_COUNT | cut -s -d' ' -f1` FILENAME=`cat ${LOCAL_DIR}/FileList.txt | /usr/xpg4/bin/awk -v mycount=${COUNT} 'BEGIN{FS=" "} {if(NR == mycount) {print $9}}'` The function...
  3. annay121

    If condition in Shell Script

    I have a situation wherein i have to check multiple conditions in an 'if' based on some variables. I have given the condition as if [ ("${VAR1}" == "${VAR2}") || ("${VAR3}" != "${VAR4}") ] then . . else . . fi On running the script I am getting a syntax error syntax error at line number...
  4. annay121

    Wildcard search on FTP Server

    I have a list of files in a folder on a FTP server say a1.txt b1.txt a2.txt b2.txt a3.txt b3.txt I want the list of files starting with 'a'. So I gave ls -ltr a*.txt but it doesn't work. Any suggestions ?
  5. annay121

    Reading Timestamp and Comparing timestamp

    I am relatively new to shell scripting. I would like to know how to read the timestamp of a given file present on a) Unix m/c b) FTP server Also, how do i compare two timestamps that I have ?

Part and Inventory Search

Back
Top