10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have a requirement to check whether the files exists, then it will call other steps in shell script.
I did
ls *.csv|wc -l
if
then checking the count of the files should be more than 1 then it will call other steps.
I am getting the error that too many arguements as there n... (13 Replies)
Discussion started by: cnrj
13 Replies
2. Shell Programming and Scripting
Hi,
I have two files
file1:
ALEX
DANY
GARY
TOM
MARY
HARRIS
file2:
ALEX 3
ALEX 5
ALEX 0
ALEX 1
ALEX 0
DANY 2 (2 Replies)
Discussion started by: Diya123
2 Replies
3. Shell Programming and Scripting
Hi I am having a problem to verify existence of files. I need to know whether or not files in a folder that begins with a name.
For example all files that start with The_File_ *.
I was doing it this way, but gives me error.
if text -f /work/The_File_*
then
...
else
..
fi (5 Replies)
Discussion started by: Rodrih92
5 Replies
4. Shell Programming and Scripting
Hi,
I am checking for existence of files with the same extensions
#! /usr/bin/ksh
txtfiles = '*.txt'
if
then
cp ${dirpath}/${txtfiles} ${dir2path}
fi
I am getting the following error
line 5: [: too many arguments for the if check condition (4 Replies)
Discussion started by: chen.sara
4 Replies
5. Shell Programming and Scripting
Infile
Outfile (3 Replies)
Discussion started by: dvah
3 Replies
6. Shell Programming and Scripting
Hello,
Can you please help me to see if log files exist in a directory?
I need to scan logs in different directories, so I am using an array to change dynamically.
I need help in the if test statement
dir=/logs/MSD
dir=/logs/UPD
countA=1
while (( countA <= ${#dir
} ))
do
cd ${dir}... (1 Reply)
Discussion started by: drbiloukos
1 Replies
7. Shell Programming and Scripting
Hi Forum.
I need a script to wait for all multiple trigger files to be present or else go to sleep for 10 seconds (Number of trigger files can vary). I tried to search on the forum but was not able to find a solution.
I found this code on this forum but it's not working as expected:
for... (6 Replies)
Discussion started by: pchang
6 Replies
8. UNIX for Dummies Questions & Answers
Hi,
- The first question I have concerns a very fundamental aspect of a unix OS. Specifically, does unix treat everything as a file (ie a directory is just a type of file)?
- The reason I ask is that I am trying to determine which BASH unary operator I would to use to determine whether or not... (1 Reply)
Discussion started by: msb65
1 Replies
9. Shell Programming and Scripting
Hi,
I want to check multiple files exist or not in a single if statement in korn Shell:confused:.
Please help me
Thanks (1 Reply)
Discussion started by: lathish
1 Replies
10. Shell Programming and Scripting
hi, I have a list of filenames and I want to verify if they all exist. I know "if filename" would do the trick but how do I go about a list of files? thanks (3 Replies)
Discussion started by: mpang_
3 Replies