Sponsored Content
Top Forums Shell Programming and Scripting Create empty files from a list on file Post 302874723 by RudiC on Saturday 16th of November 2013 01:51:19 PM
Old 11-16-2013
What about
Code:
touch $(< file)
-rw-r--r-- 1 c c    0 Nov 16 19:49 2191off-r0.sps
-rw-r--r-- 1 c c    0 Nov 16 19:49 2192off-r0.sps
-rw-r--r-- 1 c c    0 Nov 16 19:49 2193off-r0.sps
-rw-r--r-- 1 c c    0 Nov 16 19:49 2194off-r0.sps
-rw-r--r-- 1 c c    0 Nov 16 19:49 2195off-r0.sps

, as touch may have many parameters (up to LINE_MAX?)...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How will you list only the empty lines in a file (using grep)

How will you list only the empty lines in a file (using grep) (1 Reply)
Discussion started by: JosephGerard
1 Replies

2. Shell Programming and Scripting

simultaneously create three empty files?

I can't get touch to simultaneously create three empty files file1, file2, file3. I tried:$ touch filebut all I got was one file:$ fileWhat did I do wrong? (4 Replies)
Discussion started by: na5m
4 Replies

3. Shell Programming and Scripting

create diffrent files based on other file and parameters list

I would like ot create shell script/ bash to create diffrent files based on a file and parameters list. Here is the detail example: I have a textfile and four static parameter files (having ‘?'). mainfile.txt has below records (this count may be more than 50) A200001 A200101 B200001... (9 Replies)
Discussion started by: raghav525
9 Replies

4. Shell Programming and Scripting

Create files from a list and then populate them

I have a list of filenames that I want created - they must be created via a certain naming convention due to the software I'm using. Once they are created I have another file that will be used to populate them with data. So far this is what I have: #For each line in text file "foo_txt" create... (2 Replies)
Discussion started by: MaindotC
2 Replies

5. UNIX Desktop Questions & Answers

how to create empty wav file

Dear All, Kindly explain me a command in unix to create a empty wav file with example. Thanks in Advance! (1 Reply)
Discussion started by: thillai_selvan
1 Replies

6. UNIX for Dummies Questions & Answers

Need help how to create a file (xml) list all files from directory

I have more than 10K songs in two directories on a hard drive. I would like to create a file list all of files name then change to .xml extension to upload to iPhone so I have a Karaoke list on my iPhone. I need your help to create a file by using command in Linux. Files names: 0001 More... (4 Replies)
Discussion started by: ggcc
4 Replies

7. Shell Programming and Scripting

Single command to create multiple empty files(no trailing lines as well).

Hi, i need a single command to create multiple empty files(no trailing lines as well) and empty the files if already existing. please let me know or if this has been ansered, if some ocan share the link please, thanks > newfile.txt or :> newfile.txt do not work (4 Replies)
Discussion started by: Onkar Banerjee
4 Replies

8. Shell Programming and Scripting

Create a list of missing files

Hello Guys I have a big list of files in one directory. And Some are missing . Example ls -l 2191off-r0.sps 2193off-r0.sps 2194off-r0.sps 2197off-r0.sps 2198off-r0.sps 2200off-r0.sps I would like to create a file with the list only missing files. Or if is possible to create in ... (4 Replies)
Discussion started by: jiam912
4 Replies

9. Linux

How to create new empty utf8 file for appending?

Hey i try to create empty text file with utf-8 encoding without success what is the right way to do this ? tried with touch test.txt iconv -f UTF-8 -t UTF-8 test.txt or iconv -f latin1 -t UTF-8 test.txt (8 Replies)
Discussion started by: umen
8 Replies

10. UNIX for Beginners Questions & Answers

How to pass strings from a list of strings from another file and create multiple files?

Hello Everyone , Iam a newbie to shell programming and iam reaching out if anyone can help in this :- I have two files 1) Insert.txt 2) partition_list.txt insert.txt looks like this :- insert into emp1 partition (partition_name) (a1, b2, c4, s6, d8) select a1, b2, c4, (2 Replies)
Discussion started by: nubie2linux
2 Replies
wav2swf(1)							     swftools								wav2swf(1)

NAME
wav2swf - convert a WAV file to an SWF animation. Synopsis wav2swf [-o filename] file.wav DESCRIPTION
Takes a wav file and converts it to a swf movie. OPTIONS
-h, --help Print short help message and exit -V, --version Print version info and exit -o, --output filename Explicitly specify output file. (Otherwise, output will go to output.swf) -r, --framerate fps Set file framerate to fps frames per second. -s, --samplerate sps Set samplerate to sps frames per second (default: 11025). -d, --definesound Store the sound as DEFINESOUND tag, not as streaming sound. Allows for looping. -l, --loop n Loop the sound n times. -C, --cgi For use as CGI- prepend http header, write to stdout. -S, --stop Stop the movie at frame 0, and start the sound at 1, so that the sound will not play until a "GotoFrame(1)" is issued. (For use with flashsound.js). -E, --end Stop the movie at the end frame -b, --bitrate bps Set mp3 bitrate to bps (default: 32) -v, --verbose Be more verbose. (Use more than one /-v for greater effect) AUTHOR
Matthias Kramm <kramm@quiss.org> wav2swf February 2012 wav2swf(1)
All times are GMT -4. The time now is 08:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy