UNIX Pipelines


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting UNIX Pipelines
# 8  
Old 10-15-2013
Hi,
Another way:
Code:
$ cat infile
The quick brown fox jumped
over the fence
and ran into the woods

Code:
$ printf "%s\n" $(<infile) >outfile

Code:
$ cat outfile
The
quick
brown
fox
jumped
over
the
fence
and
ran
into
the
woods

Regards.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File Transfer from Window server to UNIX and UNIX to UNIX

Dear All, Can someone help to command or program to transfer the file from windows to Unix server and from one unix server to another Unix server in secure way. I would request no samba client. (4 Replies)
Discussion started by: yadavricky
4 Replies

2. UNIX for Dummies Questions & Answers

How does unix system administration, unix programming, unix network programming differ?

How does unix system administration, unix programming, unix network programming differ? Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies

3. UNIX for Dummies Questions & Answers

Building Pipelines?

How would I combine commands in a pipeline to produce an alphabetized list of who's online at a particular moment? Then: How would I take that pipeline and turn it into a command called "whoison"? (1 Reply)
Discussion started by: greeky
1 Replies

4. Shell Programming and Scripting

Varialble in pipelines

Hi, As per shell docs because commands in pipelines are run as separate processes, variables set in a pipeline have no effect on the parent shell In the sample below I am unable to set variable in Proc1 so that I can see it in the main program Is there any work around ? Thanks Zam... (4 Replies)
Discussion started by: zam
4 Replies

5. UNIX for Dummies Questions & Answers

Pipelines

Now before this thread gets closed, please be aware this is not classwork or homework, I am trying to learn unix by myself, and have come stuck below. So it is a pointless to close this thread, as I am trying to improve my unix by asking advice from people. That is what I assume a forum is for! ... (1 Reply)
Discussion started by: Vn3050
1 Replies

6. Shell Programming and Scripting

FTP script for sending a file from one unix directory to another unix server director

Hi, My local server is :/usr/abcd/ Remote server is :/Usr/host/test/ I want to send files from local unix directory(All files starting with O_999) to remote host unix directory. Can any body give me the Unix Shell script to do this. One more doubt: Shall we need to change the file... (1 Reply)
Discussion started by: raja_1234
1 Replies

7. UNIX for Advanced & Expert Users

missing Path(in UNIX) when i launch a job on to unix machine using windows SSh

hi i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies

8. UNIX for Dummies Questions & Answers

multiple pipelines

howdy all, i've been trying to find info on piping info between multiple commands from the command line, but i've been unable to find any examples of piping continuous data through a chain of commands. basically, i'm trying to parse data from the top command and send it out over udp to another... (1 Reply)
Discussion started by: ohhmyhead
1 Replies

9. UNIX for Dummies Questions & Answers

UNIX problem? Unix programm runs windows 2000 CPU over 100%

Okee problems...!! What is happening: Unix server with some programms, workstations are windows 2000, the workstations work good but when you start a programm on the Unix server the CPU of the workstations go to 100% usage resulting that the system gets very slow. The programm well its running so... (2 Replies)
Discussion started by: zerocool
2 Replies
Login or Register to Ask a Question
HASH_INIT(3)								 1							      HASH_INIT(3)

hash_init - Initialize an incremental hashing context

SYNOPSIS
resource hash_init NULL (string $algo, [int $options], [string $key]) DESCRIPTION
PARAMETERS
o $algo - Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..). For a list of supported algorithms see hash_algos(3). o $options - Optional settings for hash generation, currently supports only one option: HASH_HMAC. When specified, the $key must be speci- fied. o $key - When HASH_HMAC is specified for $options, a shared secret key to be used with the HMAC hashing method must be supplied in this parameter. RETURN VALUES
Returns a Hashing Context resource for use with hash_update(3), hash_update_stream(3), hash_update_file(3), and hash_final(3). EXAMPLES
Example #1 Incremental hashing example <?php $ctx = hash_init('md5'); hash_update($ctx, 'The quick brown fox '); hash_update($ctx, 'jumped over the lazy dog.'); echo hash_final($ctx); ?> The above example will output: 5c6ffbdd40d9556b73a21e63c3e0e904 SEE ALSO
hash(3), hash_algos(3), hash_file(3), hash_hmac(3), hash_hmac_file(3). PHP Documentation Group HASH_INIT(3)