Search Results

Search: Posts Made By: shruthidwh
1,066
Posted By RudiC
Why should it give any output, as there's no...
Why should it give any output, as there's no input?

EDIT: TryUYRD=$(echo $FILE_$timestamp.csv | awk '{gsub(".var", "");print}')

or, you could do it with shell parameter expansion, here: pattern...
1,066
Posted By chacko193
Can you show what is stored in this variables ...
Can you show what is stored in this variables
$FILE_$timestamp.csv

?
1,066
Posted By RudiC
Sorry, my fault. Make it ...
Sorry, my fault. Make it
UYRD=${FILE_/.var}$timestamp.csv
FILE and FILE_ are two different things.

And, use code tags!
1,066
Posted By chacko193
Try: UYRD="$(echo $FILE | awk...
Try:

UYRD="$(echo $FILE | awk '{gsub(".var","")}1')_${timestamp}.csv"
4,192
Posted By methyl
Difficult to guess what your output should look...
Difficult to guess what your output should look like.
I guess you mean something like this (untested on AIX - may need adjustment):
find . -print|sort| while read F
do
ls -lad "${F}"|tr...
908
Posted By ahamed101
I don't see any issue with your code. Execute...
I don't see any issue with your code.
Execute the code with -x option like this and see. It will help to identify the issue.
sh -x File_Size.sh sdjkjkdf


And are you sure the "echo" is in...
908
Posted By jville
try this .... you are missing an "Else" if...
try this ....
you are missing an "Else"

if [[ -s $1 ]]
then
echo "File $1 FOUND!"
exit 0
else
echo "File $1 NOT FOUND"
exit 1

fi
1,367
Posted By yazu
In every line which begins with "AIRTEL,POSTPAID"...
In every line which begins with "AIRTEL,POSTPAID" this code substitutes the first substring which matches the next pattern: "comma" "number or another number" "comma" by one "comma":

sed -r...
Showing results 1 to 8 of 8

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