02-02-2018
$(< file ) and $( cat file )
What is the difference between $(< filename ) and $( cat filename ) ?
Or should i ask ... are they equivalent ?
Last edited by ctsgnb; 02-02-2018 at 02:46 PM..
These 2 Users Gave Thanks to ctsgnb For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can you use cat to send the first 25 lines of a file to the printer? I'm thinking I can pipe it with '|' but I'm not school to check printer output.
With the 'nl' used, all lines are numbered on the print out, but how does one number only the blank lines?
Thanks:) (1 Reply)
Discussion started by: bitwize
1 Replies
2. Shell Programming and Scripting
Hi,
I wnat to read a fiel line by line and store each line in a variabel, so I made a for loop:
for i in `cat file` ; do
#do sth.
done;
The problem is, that in the file, there are lines with only asterisks like this... (3 Replies)
Discussion started by: bensky
3 Replies
3. UNIX for Dummies Questions & Answers
Not sure how to do this exactly.. just want to take the first 100 lines of a file and cat it out into a second file. I know I can do a more on a file and > it into a different file, but how can I make it so only the first 100 lines get moved over? (1 Reply)
Discussion started by: LordJezo
1 Replies
4. UNIX for Dummies Questions & Answers
I want to cat a file with only show the line contain '/bin/bash' but don't show the line contain 'load' (don't show if the line contain 'load' and '/bin/bash' together), how to type in the command? thk a lot! (2 Replies)
Discussion started by: zp523444
2 Replies
5. Shell Programming and Scripting
I am looking for a command to take files with a specific date and cat them all into big file. I know I can use commands to list all of the files from a certain date. But I want to do that and take those files and make on large files containing all of them.
Any help would be great. This is being... (1 Reply)
Discussion started by: Jcheetwood
1 Replies
6. Shell Programming and Scripting
Hi,
I have two files
one.txt
laptop
boy
apple
two.txt
unix
linux
OS
openS
I want to split one.txt into one line each and concatenate it with the two.txt
output files
onea.txt
laptop (4 Replies)
Discussion started by: avatar_007
4 Replies
7. Shell Programming and Scripting
how to cat a file by ignoring first line and last line (1 Reply)
Discussion started by: thelakbe
1 Replies
8. UNIX for Advanced & Expert Users
Hi All,
I have stumbled upon very unique issue. In my script I am doing cat file and then greping and cutting so as to assign the value to variable. My file is,
<mxc_tl_load_extractdata_prop.bsh>
DB_USER=test_oper
hostname=xxx
FTP_USER=test1_operate
MAIL_LIST=xxx@yyy.com... (1 Reply)
Discussion started by: paragd
1 Replies
9. UNIX for Advanced & Expert Users
in bash:
for i in `cat file` ; do
echo $i
done;
how will i do this in perl ? (10 Replies)
Discussion started by: linuxgeek
10 Replies
10. Shell Programming and Scripting
Hello,
I'm on a remote computer by SSH. How can I get the output of "cat file" into a file on the local computer?
I cannot use scp, because it's blocked.
something like:
ssh root@remote_maschine "cat /file" > /locale_machine/file
:rolleyes: (2 Replies)
Discussion started by: borsti007
2 Replies
LEARN ABOUT DEBIAN
oggz-merge
oggz-merge(1) General Commands Manual oggz-merge(1)
NAME
oggz-merge -- Merge Ogg files together, interleaving pages in order of presentation time.
SYNOPSIS
oggz-merge [-o filename | --output filename ] filename ...
oggz-merge [-h | --help ] [-v | --version ]
Description
oggz-merge merges Ogg files together, interleaving pages in order of presentation time. It correctly interprets the granulepos timestamps
of Ogg CELT, CMML, Dirac, FLAC, Kate, PCM, Speex, Theora and Vorbis bitstreams. Run oggz-known-codecs(1) for a full list of codecs known
by the installed version of oggz.
For example, if you have an Ogg Theora video file, and its soundtrack stored separately as an Ogg Speex audio file, and you can use oggz-
merge to create a single Ogg file containing the video and audio, interleaved together in parallel.
Similarly, using oggz-merge on a collection of Ogg Vorbis audio files will create a big Ogg file with all the songs in parallel, ie. inter-
leaved for simultaneous playback. Such a file is proper Ogg, but not "Ogg Vorbis I" -- the Ogg Vorbis I specification defines an Ogg Vorbis
file as an Ogg file containing only one Vorbis track at a time (ie. no parallel multiplexing). Many music players (which use libvorbisfile)
aren't designed to play multitrack Ogg files. In general however, video players, and anything built on a multimedia framework (like
GStreamer, DirectShow etc.) will probably be able to handle such files.
If you want to create a file containing some Ogg files sequenced one after another, then you should simply concatenate them together using
cat. In Ogg this is called "chaining". If you cat Ogg Vorbis I audio files together, then the result will also be a compliant Ogg Vorbis
file.
Options
oggz-merge accepts the following options:
Miscellaneous options
-o filename, --output filename
Write output to the specified filename instead of printing it to standard output.
-h, --help
Display usage information and exit.
-v, --version
Output version information and exit.
EXAMPLES
Merge pages of audio.oga and video.ogv:
oggz merge -o output.ogv audio.oga video.ogv
AUTHOR
Conrad Parker September 21, 2004;
COPYRIGHT
Copyright (C) 2004 CSIRO Australia
SEE ALSO
cat(1), oggz-rip(1), oggz-dump(1), oggz-diff(1), hogg(1)
oggz-merge(1)