Sponsored Content
Top Forums Shell Programming and Scripting Use the content of a file as standard input Post 302810353 by Ray Sun on Tuesday 21st of May 2013 04:44:06 PM
Old 05-21-2013
Wow, that's excellent! Now I understand the differences. But, how should I modify my program to get the standard input from input.in?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

standard input

how can i redirect standard input? i dont remember :/, though could you redirec not from a command? i mean, to redirect always stdin and stout (1 Reply)
Discussion started by: Jariya
1 Replies

2. Shell Programming and Scripting

file content to standard output from a script

hi folks how do i output contents of file in standard output. in my script, i say x=`cat filename' echo $x below is the actual file *********** asda afdf fdf sdf dsfsdfsd fds dsfdfsdfsdg ssgd sgdg sdfsdgfsdg dgfd gsfd gs sdg sfdg s in my script, i am trying to output the... (4 Replies)
Discussion started by: bryan
4 Replies

3. Shell Programming and Scripting

How to copy from standard input

I tried copy the output files from find command into a directory. Example, find / -name core 2>/dev/null | xargs cp???? I have known that we can use xargs to execute command lines from standard input but how to use it in this case. Or I can do something besides xargs. (2 Replies)
Discussion started by: lalelle
2 Replies

4. Shell Programming and Scripting

opening a file given as standard input

Hi I am trying to write a shell script which should take the file as standard input. As file(content and name both) will change for each run. It should read the file line by line. with each line I have to perform certain operation. For example I have i file foo, it looks like /usr/doc/abc... (4 Replies)
Discussion started by: shashiprakash81
4 Replies

5. Solaris

standard input

Please give me any example for standard input in Solaris. (6 Replies)
Discussion started by: karman0931
6 Replies

6. Shell Programming and Scripting

Reading Standard Input

Hello, I am new to scripting. How do I read multiple lines from the command line? I know read reads one line, but if I have to read multiple lines, how should I do? Thanks, Prasanna (4 Replies)
Discussion started by: prasanna1157
4 Replies

7. Shell Programming and Scripting

Reading from standard input

So, I am new to shell scripting and have a few problems. I know how to read from standard input but I do not know how to really compare it to say, a character. I am trying to compare it to a character and anything exceeding just a character, the user will get an output message, but the program... (7 Replies)
Discussion started by: Bungkai
7 Replies

8. UNIX for Dummies Questions & Answers

Copying and Renaming file through standard input

Hi Geeks, I am relatively new to Unix. Trying out to achive a shell script by hard learning. Here is my requirment. 1. I have to search for specified strings that are given in .csv file in the directory to find the files for matching strings in the .csv file. 2. If match is found, copy... (1 Reply)
Discussion started by: uunniixxuusseer
1 Replies

9. Shell Programming and Scripting

standard input and cron

I have a program that requires the user to enter input values while it is being run for example in bash ... ... .. echo "Enter your input" read input echo $input ... ... ...I need to schedule this program with crontab, hence a problem, cronjobs run in the background, any ideas on how to... (10 Replies)
Discussion started by: walforum
10 Replies

10. Homework & Coursework Questions

Removing punctuations from file input or standard input

Just started learning Unix and received my first assignment recently. We haven't learned many commands and honestly, I'm stumped. I'd like to receive assistance/guidance/hints. 1. The problem statement, all variables and given/known data: How do I write a shell script that takes in a file or... (4 Replies)
Discussion started by: fozilla
4 Replies
cdc(1)							      General Commands Manual							    cdc(1)

NAME
cdc - change the delta commentary of an SCCS delta SYNOPSIS
SID [mrlist]] [comment]] files DESCRIPTION
The command changes the for the SID specified by the option, of each named SCCS file. is defined to be the Modification Request (MR) and comment information normally specified via the delta(1) command and options). If a directory is named, behaves as if each file in the directory were specified as a named file, except that non-SCCS files (last compo- nent of the path name does not begin with and unreadable files are silently ignored. If a name of is given, the standard input is read (see each line of the standard input is taken to be the name of an SCCS file to be processed. Options Arguments to which can appear in any order, consist of option arguments and file names. All of the described option arguments apply independently to each named file: Used to specify the SCCS IDentification (SID) string of a delta for which the delta commentary is to be changed. If the SCCS file has the option set (see admin(1)), a list of MR numbers to be added and/or deleted in the delta commentary of the SID specified by the option may be supplied. A null MR list has no effect. MR entries are added to the list of MRs in the same manner as that of delta(1). To delete an MR, precede the MR num- ber with the character (see If the MR to be deleted is currently in the list of MRs, it is removed and changed into a "comment" line. A list of all deleted MRs is placed in the comment section of the delta commentary and preceded by a comment line stating that they were deleted. If is not used and the standard input is a terminal, the prompt is issued on the standard output before the standard input is read; if the standard input is not a terminal, no prompt is issued. The prompt always precedes the prompt (see option). MRs in a list are separated by blanks and/or tab characters. An unescaped new-line character terminates the MRs list. Note that if the option has a value (see admin(1)), it is treated as the name of a program (or shell procedure) that validates the correctness of the MR numbers. If a non-zero exit status is returned from the MR number validation program, terminates and the delta commentary remains unchanged. Arbitrary text used to replace the comment or comments already existing for the delta specified by the option. Previous comments are kept and preceded by a comment line stating that they were changed. A null comment has no effect. If is not specified and the standard input is a terminal, the prompt is issued on the standard output before standard input is read; if standard input is not a terminal, no prompt is issued. An unescaped new-line character terminates the comment text. The exact permissions necessary to modify the SCCS file are documented in get(1). Simply stated, they are either: o If you made the delta, you can change its delta commentary, or o If you own the file and directory, you can modify the delta commentary. EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. International Code Set Support Single- and multi-byte character code sets are supported. DIAGNOSTICS
Use sccshelp(1) for explanations. EXAMPLES
Add and to the MR list, remove from the MR list, and add the comment to delta 1.6 of The following does the same thing: WARNINGS
If SCCS file names are supplied to the command via the standard input on the command line), the and options must also be used. FILES
x-file See delta(1). z-file See delta(1). SEE ALSO
admin(1), delta(1), get(1), sccshelp(1), prs(1), sccsfile(4), rcsfile(4), acl(5), rcsintro(5). cdc(1)
All times are GMT -4. The time now is 10:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy