04-07-2020
Create multiple files in Linux with a pattern
I want to create multiple odd numbered files in linux like file1a file1b......file1z file3a...file3z file5a...filez and so on
Till now I've come up with touch $(seq -f "file%g" 1 2 10) This will create file1 file3 and so on but where should I put {a..z} to attach these alphabets to each file?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I need to find all *.xml files that matched by pattern on Linux. I need to have written the file name on the screen and then change the pattern in the file just was found.
For instance.
I can start the script with arguments for keyword and for value, i.e
script.sh keyword... (1 Reply)
Discussion started by: yart
1 Replies
2. Shell Programming and Scripting
I have a list of pattern in a file, I want each of these pattern been searched from 4 files. I was wondering this can be done in SED / AWK.
say my 4 files to be searched are
> cat f1
abc/x(12) 1
abc/x 3
cde 2
zzz 3
fdf 4
> cat f2
fdf 4
cde 3
abc 2... (6 Replies)
Discussion started by: novice_man
6 Replies
3. Shell Programming and Scripting
HI,
I would like to create the files as
file1.txt
file2.txt
file3.txt
......
.......
.......
filen.txt
in a single unix command, i dont want to use the loops.
n is user specific
Kindly help me in this.
THank you
Jagadeesh (2 Replies)
Discussion started by: jagguvarma
2 Replies
4. Shell Programming and Scripting
Hi everyone!
I usually get large files with different groups of entries; for example, each line starts with A, B, C, D, or E. Is there a way to separate all these entries and then write them in 5 different files with one awk program?
Thank you! (4 Replies)
Discussion started by: Avro1986
4 Replies
5. Shell Programming and Scripting
I have a file details.csv and I need to create 5 files in same folder named as details1.csv,details2.csv,details3.csv,details4.csv,details5.csv along with contents of details.csv
Thanks in Advance. (9 Replies)
Discussion started by: Prashanth B
9 Replies
6. Shell Programming and Scripting
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies
7. Shell Programming and Scripting
Dear All,
I am trying to write a Unix Script which fires a sql query. The output of the sql query gives multiple rows. Each row should be saved in a separate Unix File.
The number of rows of sql output can be variable. I am able save all the rows in one file but in separate files.
Any... (14 Replies)
Discussion started by: Rahul_Bhasin
14 Replies
8. Shell Programming and Scripting
Hi,
Is there a direct command or need to write a shell script for following requirement?
Everyday a folder is populated with approx 25k to 30k xml files. I need to create multiple zip files in the same folder each containing 50 xml files. The last zip file may or may not contain 50 xml files.... (6 Replies)
Discussion started by: Rakesh Thobula
6 Replies
9. Shell Programming and Scripting
dear all
suppose I have two files file_000 and file_id:
file_000:
blablablabla000blablabla000
000blahblah000blahblah
blah000blahblahfile_id:
001
002
003now, based on file_id, I want to create 3 files; the name of each file would be file_001,file_002,file_003,respectively, and the... (4 Replies)
Discussion started by: littlewenwen
4 Replies
LEARN ABOUT DEBIAN
asxxxx
ASxxxx(1) General Commands Manual ASxxxx(1)
NAME
ASxxxx - Series of microprocessor cross assemblers for SDCC.
SYNOPSIS
asx8051 [options] file1 [file2 file3 ... file6]
as-gbz80 [options] file1 [file2 file3 ... file6]
as-z80 [options] file1 [file2 file3 ... file6]
WARNING
The information in this man page is an extract from the full documentation of SDCC, and is limited to the meaning of the options.
For complete and current documentation, refer to the ASxxxx Cross Assembler Documentation, available in /usr/share/doc/sdcc-doc/aslink.
DESCRIPTION
The ASxxxx assemblers are a series of microprocessor assemblers. Each assembler has a device specific section.
MCS51 family is supported by asx8051.
Z80family is supported by as-z80.
GBZ80 (GameBoy Z80-like CPU) is supported by as-gbz80.
OPTIONS
The ASxxxx assemblers are command line oriented. The PC assemblers are started with the appropriate option(s) and file(s) to assemble fol-
lowing the assembler name.
-d decimal listing.
-q octal listing.
-x hex listing (default)
The listing radix affects the .lst, .rel, and .sym files.
-j add line number and debug information to file.
-g undefined symbols made global.
-a all user symbols made global.
-l create list output file1.lst.
-o create object output file1.rel.
-s create symbol output file1.sym.
-p disable listing pagination.
-w wide listing format for symbol table.
-z enable case sensitivity for symbols.
-f flag relocatable references by ` in the listing file.
-ff flag relocatable reference by mode in the listing file.
The file name for the .lst, .rel, and .sym files is the first file name specified in the command line. All output files are ascii text
files which may be edited, copied, etc. The output files are the concatenation of all the input files, if files are to be assembled inde-
pendently invoke the assembler for each file.
The .rel file contains a radix directive so that the linker will use the proper conversion for this file. Linked files may have different
radices.
If the list (l) option is specified without the symbol table (s) option, the symbol table is placed at the end of the listing file.
SEE ALSO
sdcc(1), aslink(1), asx8051, as-z80(1), as-gbz80(1).
AUTHOR
This manual page was written by Aurelien Jarno <aurel32@debian.org>, for the Debian GNU/Linux system (but may be used by others).
ASxxxx(1)