Search Results

Search: Posts Made By: diva_thilak
3,495
Posted By itkamaraj
#!/bin/sh ...
#!/bin/sh

processingDir="/usr/apps/irdc/informatica/spsf_sales/TgtFiles/ARCHIVE"
filename=$(ls -lrt $processingDir | awk '{a=$NF}END{print a}')

echo "Filename : ${filename}"
echo "Checking...
3,495
Posted By itkamaraj
how your filename looks like ? post the...
how your filename looks like ?

post the sameple filenames. and is that having any timestamp ?

you can retrieve the last filename like

filename=$(ls -lrt Check* | awk '{a=$NF}END{print a}' )...
3,495
Posted By rangarasan
bash
Hi,

Try this one,


#! /usr/bin/env bash

processingDir="/usr/apps/irdc/informatica/spsf_sales/TgtFiles/ARCHIVE"
filename="ls $processingDir/Check* | sort -n -k 2 | tail -1"

file=$(eval...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 04:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy