Sponsored Content
Top Forums Shell Programming and Scripting Read input write multply output with creteria Post 303014513 by tonyk334 on Tuesday 13th of March 2018 10:22:37 PM
Old 03-13-2018
Thank you

it will create 3 files?
 

10 More Discussions You Might Find Interesting

1. Programming

read input-process-output

Can you help me ? I want to write a program ,which can open a input file (input.txt) and run as child process ,then write to output file (output.txt)....... char inFile="input.txt"; char outFile="output.txt"; int main(int argc, char **argv) { pid_t pid=1; int no=0; // no. of... (5 Replies)
Discussion started by: cupid1575
5 Replies

2. IP Networking

read/write,write/write lock with smbclient fails

Hi, We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies

3. Shell Programming and Scripting

Script to read input and output files and child scripts

I have a directory where i have *.sas; *.pl;*.sh and *.c scripts I need to find out what are the child scripts and input output files for each script: say I have a shell script which calls a perl script and a sas script: In my first line I want I a) the parent script name; b) the... (1 Reply)
Discussion started by: ramky79
1 Replies

4. Shell Programming and Scripting

Read input and output redirection filename within a script

Hello everyone, My requirement is that within a script I need to construct the command line exactly that it was invoked with. For example : sh a.sh arg1 arg2 arg3 < input.txt > output.txt Now within a.sh, I construct a file which has these contents " sh a.sh arg1 arg2 arg3 < input.txt >... (8 Replies)
Discussion started by: hedonist12
8 Replies

5. Shell Programming and Scripting

Print output and read input on same line

How do I print output and read input on the same line in ksh? echo Hello, what is your name? read name (1 Reply)
Discussion started by: robin_simple
1 Replies

6. Shell Programming and Scripting

shell, read table and write the value for each factor to output

Hey guyz, I have a table like this: 1 A=#;B=#;C=# 2 A=#;C=#;D=#;E=#;E=# 3 B=#;B=#;B=#;D=# # are just some numbers. I want to have the output like this: * 1 2 3 A # # NA B # NA # C # # NA D NA # # E NA # NA So basically, I wanna know in each of the rows in my input (which... (9 Replies)
Discussion started by: @man
9 Replies

7. Shell Programming and Scripting

Read user input, Encrypt the data and write to file

Hi, can some one help me how to encrypt and decrypt a file. AIM: reade user input, encrypt it and save it to file. while decryption read the encrypted file decrypt it and save the output in some variable. Example: consider we have Credentials.txt file with content username: password... (5 Replies)
Discussion started by: saichand1985
5 Replies

8. Shell Programming and Scripting

Read input files and merge them in given order and write them to input one param or one file

Dear Friends, I am looking for a shell script to merge input files into one file .. here is my idea: 1st paramter would be outfile file (all input files content) read all input files and merge them to input param 1 ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Discussion started by: hyd1234
4 Replies

9. Shell Programming and Scripting

awk - read from a file and write conditional output

I have a file, which has '|' as separator; I need to read each line from that file and produce output to another file. While reading, I have certain condition on few specific columns (like column3 ='good'); only those lines will be processed. (3 Replies)
Discussion started by: mady135
3 Replies

10. Shell Programming and Scripting

ksh - Read input from file and output CSV i same row

Hello I have the following output and want the output to look: FROM: GigabitEthernet0/0 is up, line protocol is up 1 input errors, 0 CRC, 0 frame, 1 overrun, 0 ignored 275 output errors, 0 collisions, 3 interface resets GigabitEthernet0/1 is up, line protocol is up 0... (4 Replies)
Discussion started by: JayJay2018
4 Replies
SNPP(1p)						User Contributed Perl Documentation						  SNPP(1p)

NAME
snpp - send pages via SNPP SYNOPSIS
snpp [OPTIONS] recipient... OPTIONS
-s SERVER[:PORT] Connect to the specified SERVER (and PORT, if given). Default is "localhost:444". -f USER Show that the sent page is coming from USER. Default is the current user. -m MESSAGE Send the given MESSAGE instead of reading text from stdin. -n Do not notify the 'from' user about the status of the page. -d Display SNPP session debugging. -C CONF Read CONF instead of /etc/sendpage/snpp.conf for server default. -h Display a summary of all the available command line options. DESCRIPTION
This tool is used to send a page via the Simple Network Paging Protocol (level 2). It is designed to be used with 'sendpage', but should work with any other SNPP servers as well. The /etc/sendpage/snpp.conf file can contain a single line in the form of server:ADDRESS[:PORT] where ADDRESS and PORT are the defaults for snpp. AUTHOR
Kees Cook <kees@outflux.net> BUGS
Not much happening in this tool, but I bet the use of "CALLer id" is not standard, and other SNPP server may require this tool run with the '-n' option all the time. COPYRIGHT
snpp is free software; it can be used under the terms of the GNU General Public License. SEE ALSO
perl(1), sendpage(1), Net::SNPP(3) perl v5.10.0 2009-05-19 SNPP(1p)
All times are GMT -4. The time now is 04:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy