Search Results

Search: Posts Made By: ravigupta2u
1,086
Posted By elixir_sinari
You could use fstat (or similar utility depending...
You could use fstat (or similar utility depending on the OS), to check that no process is accessing the file, before renaming.
9,474
Posted By Scrutinizer
Try this: opalO () { if [ -f "$1" ];...
Try this:

opalO ()
{
if [ -f "$1" ]; then
for fileName in "$@"
do
cp "$fileName" "$DROPDIR"
done
else
echo "no files available"
fi
}

opalo TES_ONE*
1,311
Posted By frans
#!/bin/bash cd /home/rgupta for F in * # to...
#!/bin/bash
cd /home/rgupta
for F in * # to scan all files in directory
do
eval $(tail -1 "$F")
# evaluates the last line : executes the command COUNT=0004; so it sets COUNT to '0004;'
...
1,258
Posted By clx
Try: file_ftp () { while read inFile ...
Try:

file_ftp ()
{
while read inFile
do
#inFile=abc.arch.gz
FILETYPE=$inFile
ftp -in $GATEWAY1 <<!
user $USERID1 $PASSWD1
lcd $PICKUPDIR
cd $DROPDIR1
bin
...
1,258
Posted By methyl
Further to anchal_khare. The file...
Further to anchal_khare.

The file "list-test.txt" should contain individual file names, none of which contain space characters or asterisk characters. Though "mput" will work for individual...
10,592
Posted By Scrutinizer
Hi, try this (ksh93/bash): diff <(gunzip -c...
Hi, try this (ksh93/bash):
diff <(gunzip -c file1.gz) <(gunzip -c file2.gz) > newfile
10,592
Posted By jim mcnamara
gunzip file1.gz gunzipfile2.gz diff -l file1...
gunzip file1.gz
gunzipfile2.gz
diff -l file1 file2 > anotherfile
gzip file1
gzip file2
Showing results 1 to 7 of 7

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