Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to read multiple files at same time through UNIX scripting? Post 303034588 by RudiC on Tuesday 30th of April 2019 06:46:42 AM
Old 04-30-2019
This has been covered umpteen times in these fora; for example here, try searching for more solutions.
This User Gave Thanks to RudiC For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

UNIX find by time scripting

Hi, I want to write a UNIX script that checks for any files older then 20mins in in a unix directory. If it does find a file then an email gets sent notifying the administrator. If no files are found then it doesn't do anything. Only thing I'm not so sure about writing is the finding of ... (1 Reply)
Discussion started by: budrito
1 Replies

2. Shell Programming and Scripting

why shell scripting takes more time to read a file

i have done a coding in shell scripting which reads a file line by line and does something....it takes more than 30 seconds to execute for a single file. when i do the same with perl scripting it takes less than a second. is that shell scripting is not efficient while working with large number of... (1 Reply)
Discussion started by: brkavi_in
1 Replies

3. Shell Programming and Scripting

How to read and compare multiple fields in a column at the same time

Hi, Currently I am coding up a nasty way of reading file input using *cat* rather than *read*. My text input looks like TextA 100 TextB 110 TextC 120 Currently I am using cat |while read line to read the first column and second column fields. cat foo.txt|while read line do ... (1 Reply)
Discussion started by: ahjiefreak
1 Replies

4. UNIX for Advanced & Expert Users

how read the flat files from shell scripting

We are using sybase data base and we have the data base name called MasterDB. The data baase MasterDB contains 100's of tables like sample1, sample2, sample3...etc...sample100 To take the count of every table we have to execute the following commands use MasterDB //DB name go //execute... (1 Reply)
Discussion started by: shijoe
1 Replies

5. Shell Programming and Scripting

how read the flat files from shell scripting

We are using sybase data base and we have the data base name called MasterDB. The data baase MasterDB contains 100's of tables like sample1, sample2, sample3...etc...sample100 To take the count of every table we have to execute the following commands use MasterDB //DB name go //execute... (1 Reply)
Discussion started by: shijoe
1 Replies

6. Shell Programming and Scripting

Read two files at a time.

Hi friends, It's urgent. I am facing a problem. I want to read two files at a time, i mean line by line. My requirement is like , pls here find below while read line1fromfile1;do echo $line1fromfile1| .. echo $line1fromfile2---How i will do this done< file 1 can anyone... (5 Replies)
Discussion started by: pritish.sas
5 Replies

7. Shell Programming and Scripting

Read multiple arguments in for loop each time

Hi, Guys I am new to shell programming and just get stuck with one simple question. please kindly help. According to the tutorial here, we can do something like for NODE in "ABC 10" "EFG 20" do set -- $NODE echo "letter is $1, number is $2" done And the result will... (3 Replies)
Discussion started by: yuanli
3 Replies

8. Shell Programming and Scripting

Request for file read option in Unix shell scripting

Hi Friends, I would like to read all the record from one txt file to other file txt For example I have two txt file a.txt and b.txt. I need to read a.txt record by record and I need add the system date @ end of each record before moving it to b.txt. Could you please share the coding for... (4 Replies)
Discussion started by: vinoth124
4 Replies

9. Shell Programming and Scripting

Read multiple lines at a time from file

Hello All, I have a file like below.... dn: cn=user1,ou=org,o=org cn=user1 uid=user1 cn=user2,ou=org,o=org cn=user2 uid=user2 cn=user3,ou=org,o=org cn=user3 cn=user33 uid=user3 cn=user4,ou=org,o=org cn=user4 uid=user4 (6 Replies)
Discussion started by: s_linux
6 Replies

10. UNIX for Beginners Questions & Answers

Export Oracle multiple tables to multiple csv files using UNIX shell scripting

Hello All, just wanted to export multiple tables from oracle sql using unix shell script to csv file and the below code is exporting only the first table. Can you please suggest why? or any better idea? export FILE="/abc/autom/file/geo_JOB.csv" Export= `sqlplus -s dev01/password@dEV3... (16 Replies)
Discussion started by: Hope
16 Replies
bench(1)						      General Commands Manual							  bench(1)

NAME
bench - http benchmark SYNOPSIS
bench [-n requests] [-c concurrency] [-t timeout] [-k] [-K count] [-C cookie-file] [http://]host[:port]/uri DESCRIPTION
bench is a HTTP benchmark program that can fetch the same URL over and over again, or fetch several URLs (coming in from stdin). If you specify a URL on the command line, this URL will be fetch many times (specify with -n, default: 10000) with several connections open in parallen (specify with -c, default: 10). You can specify a timeout (per request) in seconds with -t. The -k switch activates keep-alive mode. In keep-alive mode, the TCP connection is not closed between requests. You also have to specify how many HTTP requests can go over one TCP connection with -K. bench can also send one HTTP cookie per connection, as specified using a cookie file. The cookie file is read line by line, and each request gets the next line inserted into it. So each line should look something like this: Cookie: foo=bar If the end of the file is reached, bench restarts it at the beginning. AUTHOR
Initially written by Felix von Leitner <felix-gatling@fefe.de>. LICENSE
GPLv2 (see http://www.gnu.org/copyleft/gpl.html) bench(1)
All times are GMT -4. The time now is 10:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy