10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing.
1.I need to display the .done files from the directory.
2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory
... (2 Replies)
Discussion started by: girija.g6
2 Replies
2. 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
3. Solaris
SunOS 5.10 Generic_142900-15 sun4v sparc SUNW,T5240
I have a script that needs to test a file for the existence of a trailer record. Is there a command and is a header and trailer differect record type?
Thanks in advance (1 Reply)
Discussion started by: Harleyrci
1 Replies
4. 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
5. Shell Programming and Scripting
Hi Everyone!
I'm quite new to shell scripting so this might be trivial, though 3 days of struggle and search didn't help to solve the problem:
I want to look for files called '*HUN*' in a huge amount of directories most of their names contain whitespaces and print the path of the directory if... (8 Replies)
Discussion started by: sumi76
8 Replies
6. Shell Programming and Scripting
deleted (1 Reply)
Discussion started by: ust
1 Replies
7. Programming
Hi everybody,
I need to check in C program whether a given login is known on the system. Is there any system function that could do this ?
So far, all I could find is getpwnam(), which answers my problem by parsing the local password database. But won't work if a user is authenticated by... (2 Replies)
Discussion started by: xavier054
2 Replies
8. 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
9. Shell Programming and Scripting
ok im doing this in a normal shell. i need to check the file in the script. how should i write the if else statment?
if the filesize contains 0kb then it will echo out file contains nothing
else if the script contains more than 0kb then it will echo out file exist.
any one care to help?... (3 Replies)
Discussion started by: forevercalz
3 Replies
10. UNIX for Dummies Questions & Answers
Hi!!,
Is there any way on Ksh to test the files having a particular Extension?
My program looks something like:
for i in *$1*
do
if "$i" != files with ext of .Z
then
compress -f $i
fi
done
Any suggestions???
:):) (1 Reply)
Discussion started by: jyotipg
1 Replies