12-04-2010
Creating files
I know cat can be used to create new files but
how to create multiple files(above 10) simultaneously ....
can we use pipes?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello ,
What is the easiest way to get into a directory in solaris and simply create a new file that you can then fill with content?
Thanks (4 Replies)
Discussion started by: montana77
4 Replies
2. UNIX for Dummies Questions & Answers
I have a requiremnt to create one CSV file with initial 5 lines as blank rows.
From 5th row onwards the file is to be created from a list of varibales which gets evaluated.
Say A,B,C,D,E are 5 varibales with some value associated with each of them and data type is string.
So the 6th row should... (1 Reply)
Discussion started by: dr46014
1 Replies
3. Homework & Coursework Questions
Use and complete the template provided. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a single command to create a new empty file in P1 called cloud9, I have to do it from my current working directory which is P3 cd ../ away
P1... (1 Reply)
Discussion started by: dat350z
1 Replies
4. Shell Programming and Scripting
hi,
Need a lil help experts.
i have a sh file and its calling one SQL file.
i need the dataset returned by that SQL file in a CSV format.
Can you plz help me out at the earliest.
waiting eagerly .. :confused:
Thanks.. (10 Replies)
Discussion started by: onlyniladri
10 Replies
5. Shell Programming and Scripting
I need to create a large matrix so that I can feed that matrix to MATLAB for processing. The problem is creating that matrix because my data is completely scattered around files.
1. I have one big dictionary file which has words in newlines, like
apple
orange
pineapple
2. I have some... (3 Replies)
Discussion started by: shoaibjameel123
3 Replies
6. Shell Programming and Scripting
I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)
Discussion started by: jmalfhs
4 Replies
7. UNIX for Dummies Questions & Answers
Hello All,
I just created a new user on a server running SLES 11, and I created the user using the command below:
# useradd -G nagios scpuser
But whenever I create a file or directory while logged in as this user it creates the file's ownership permissions as "scpuser:users"
instead of it... (2 Replies)
Discussion started by: mrm5102
2 Replies
8. Shell Programming and Scripting
Hi members,
I have a file with lots of text like this:
asdsfkm
dfsfomnow i want to extract only the rows with HUMAN as its 1st column
for this I used :
ruby -ne 'print if /^Human/; exit if /^TER/' $line | awk 'print $1, "\t"$2, "\t"$3, "\t"$4, "\t"$5}' >$line"new"
This is creating a file... (1 Reply)
Discussion started by: CAch
1 Replies
9. Shell Programming and Scripting
Hi All,
I have a requirement where I have to pick csv files from another unix server by searching the list of files by their name and then copy to my server. Then I want to create their zip file and save it on my server. How can I do it using unix shell script. Please help me with the... (1 Reply)
Discussion started by: anil029
1 Replies
10. Shell Programming and Scripting
So my script is supposed to repeat for every server in my file, but as of now it is getting stuck on my awk commands
# Read file cred.txt (with one IP per line), connect to servers (one at a time), and download directory listing
i=1
param=$(sed -n "{$1}p" $parm_dir/cdm_param.txt) #Get the last... (6 Replies)
Discussion started by: MJCreations
6 Replies
LEARN ABOUT DEBIAN
expack
expack(1) General Commands Manual expack(1)
NAME
expack - manipulate Flex files
SYNOPSIS
expack -a FLEXFILE FILE...
expack -c FLEXFILE FILE...
expack -x FLEXFILE [INDEX]
expack -i MANIFEST
expack -l FLEXFILE
DESCRIPTION
expack is a command-line utility that lets you extract and create Flex files. Flex files are archives (which means that they act as con-
tainers for other files, somewhat like directories) used by Ultima 7 to store most of its data. Note that the names of the original files
are not stored in the Flex -- files are only retrievable by their index.
Modes of operation
-a Add --NOT IMPLEMENTED YET. FUTURE ENHANCEMENT-- This command adds one or more FILEs to the end of FLEXFILE.
-c Create
This command takes one or more FILEs and bundles them into FLEXFILE, overwriting it in the process.
-x Extract
Lets you extract the files contained within FLEXFILE. If INDEX is given only the file at this position will be unpacked, otherwise
all files are extracted. The created files will be named index.u7o.
-i Input
Similar to "Create", this command creates FLEXFILE from a number of input files. However, "Input" takes the names of the input files
from MANIFEST instead of the command line.
MANIFEST must be a list of file names, one per line. The first name is that of the Flex file that is to be created, the rest are the
input files used in building it.
-l List
This command lists the contents of a FLEXFILE. It gives you the number of files contained within the Flex file, as well as the
length of each file.
EXAMPLES
expack -a animals.flx bee.wav
Adds bee.wav to the Flex file animals.flx.
expack -a animals.flx hamster.wav snake.wav donkey.wav
Adds hamster.wav, snake.wav, and donkey.wav to the Flex file animals.flx.
expack -c animals.flx duck.wav cat.wav cow.wav dog.wav
Creates a new Flex file animals.flx containing duck.wav, cat.wav, cow.wav, and dog.wav.
expack -x text.flx 17
Extracts the file at position 17fromtext.flxinto17.u7o.
expack -x text.flx
Extracts all files from text.flx into files named 0.u7o, 1.u7o, 2.u7o, etc.
expack -i wavlist
With wavlist reading:
jmsfx.flx
ant.wav
bee.wav
cat.wav
will create a new Flex file jmsfx.flx consisting of ant.wav, bee.wav, andcat.wav.
expack -l text.flx
Lists the number and lenghts of files contained in text.flx.
BUGS
The "Add" command (-a) does not work yet.
AUTHOR
This manpage was written by Robert Bihlmeyer based on a text by Marc Winterrowd. It may be freely redistributed and modified under the
terms of the GNU General Public License version 2 or higher.
Exult 2002-03-23 expack(1)