Search Results

Search: Posts Made By: jmahal
18,578
Posted By jmahal
List files to variable
Hi,
I have a variable that I use in a for loop :-

files="`ls -t /usr/dw/apps/work/PROJECT_NEW/SrcFiles/$1/*.txt | head -1`"

This picks up *.txt files in a directory based upon the last...
7,183
Posted By jmahal
Yes same issue .. filename $i missing ..
Yes same issue .. filename $i missing ..
7,183
Posted By jmahal
Move multiple files
Hi all ..

I am trying :-
#! /bin/sh
# Archives target file ftp'd to SAP ECC
srcfiles=/usr/dw/apps/work/PROJECT_NEW/SrcFiles/$1/*.txt
tgtfiles=`ls...
17,536
Posted By jmahal
Thanks Jim !!!
Thanks Jim !!!
17,536
Posted By jmahal
if statement with grep as conditional
Please see the script segment below

for i in $files
do
echo $i
if [ -e $i ]; then
case "$1" in
"IE0263"|"IE0264"|"IE0267"|"IE0268")
short_filename=`ls -l $i |...
2,964
Posted By jmahal
Case statement
Hello,
The standard case statement :-

case "$1" in
"IE0263")
commands;;
"IE0264")
commands;;
esac

is it possible to have :-

case "$1" in
"IE0263" OR "IE0878")
commands;;
"IE0264")...
Showing results 1 to 6 of 6

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