hi,
i want to write the script to list atleast one file inside that directory
eg:
/home/Log/amp01
/home/log/amp02
.
.
.
/home/log/amp..N
want to see atleast one file inside the /home/log/amp01 .... amp(N)
if it not there.. need to give that no file exists inside... (3 Replies)
Question for anyone that might be able to help:
My objective is to eheck if a file (a source file) exists in a directory. If it does then, I'd like to call an application (Informatica ETL file...not necessary to know) to run a program which extracts data and loads it into multiple targets.
... (6 Replies)
Hi,
Here is what i'm trying to do,
-Check in two directories for a user inputed filename
-Then cat all the version found of the file to the current screen
I am a total nembie to programming, here what i have done so far....
#!/bin/bash
#Check in /home/loonatic and /var/named/master... (2 Replies)
Hi,
I am new to shell scripting.Please help me on this.I am using solaris 10 OS and shell i am using is
# echo $0
-sh
My requirement is i have source file say makefile.I need to extract files with extensions (.c |.cxx |.h |.hxx |.sc) from the makefile.after doing so i need to check whether... (13 Replies)
Dear members, The following expect script connects to remote node and check for the file "authorized_keys" in directory /root/.ssh in remote node. However the result is always found even if the file exist or doesn't exist.
expect {
"$fname" {
send_user "found\n"
}
Any idea what is... (4 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a script checkFiles.sh that takes an arbitrary number of file paths from the command line and carries ... (5 Replies)
I am passing multiple files in awk & since one of the file is empty(say file3) so the same gets skipped & logic goes for toss. Need suggestion/help in checking and putting additional checks for the same
awk -F, 'FNR==1 {++filecounter}
filecounter==1 {KRL=$2;next}
filecounter==2... (8 Replies)
Hello,
I needed help with a shell script where in it checks if a file exists under a directory and also checks the age of the file and delete it if it is older than 3 weeks.
thanks (10 Replies)
hello everyone,
I am new to linux and got this deliverable to write a script that should check for error in multiple log file (count is approx 2500 log files on single server) and once error is found, it should mail that error
My logic says:
we can put all log files path/location in one... (2 Replies)
Hi All,
I am new in scripting and working in a project where we have RSyslog servers over CentOS v7 and more than 200 network devices are sending logs to each RSyslog servers. For each network devices individual folders create on the name of the each network devices IP addresses.The main... (7 Replies)
Discussion started by: Pinaki
7 Replies
LEARN ABOUT DEBIAN
pipebench
pipebench(1)pipebench(1)NAME
pipebench - Shows speed of stdin/stdout communication
SYNOPSIS
pipebench [ -ehqQIoru ] [ -s file | -S file ] [ -b bufsize ]
DESCRIPTION
Measures the speed of stdin/stdout communication.
OPTIONS -h Displays a help message and exits.
-e If an error occurs, exit (breaking the pipe between stdin and stdout. By default an error message is printed to stderr and the pro-
gram continues.
-q Only show summary stats.
-Q Don't show running speed or summary stats. Same as -q -o. Can be used to play with buffer size.
-o Don't show summary.
-b bufsize
Use this buffer size, in bytes.
-r Just show raw speed, no fancy stuff. And no summary.
-s file
Write status to file instead of stderr.
-S file
Write status to file instead of stderr.
-I Use 1kB = 1000B, instead of the default 1024B.
-u Don't convet to units (kilo, Mega, etc...)
EXAMPLES
Benchmark and show progress of backup
# (cd /home/; tar cf - .) | pipebench | (cd /mnt/backup/; tar xf -)
A number to brag to your friends about
$ dd if=/dev/zero bs=80k count=60k 2> /dev/null | ./pipebench -q > /dev/null
BUGS
No known bugs... yet.
SEE ALSO dd(1), cat(1)AUTHOR
Pipebench was written by Thomas Habets <thomas@habets.pp.se>
pipebench 18th Apr, 2003 pipebench(1)