i have a directory which consist of multiple files out of which there are some files that has -e in their name.
I want to write a script that will change all those file-name to -l
example there are some files with name :
Code:
file1-e.wav
file2-e.wav
file3-english-e.wav
file-4-e.wav
expected output
Code:
file1-l.wav
file2-l.wav
file3-english-l.wav
file-4-l.wav
Hi,
I'd like to process multiple files. For example:
file1.txt
file2.txt
file3.txt
Each file contains several lines of data.
In advance, I appreciate any help or tips. I apologize for not providing examples of scripts I have already tried, the reason is that I am new to programming and do not really no where to start. I think this is possible with awk, but do not know how to go about learning how to write the script that would do the trick (ie, which commands to read up on).
I have two files like this
file1
a
b
c
file2
0
1
2
I want to output
a,0
b,1
c,2
Appending the two files like this
row(n) of file1 +","+ row(n) file2 for every n, total n is same in both files
I want to know is there any utility in shell which can help me do this, I do not want to use java file read file write for this or any loops. Can it be done using awk?
I have a directory that contains several files, out of which some files are have an extra extension for example
Code:
file1.new.new.new
file2.new.new.new
file3.new.new.new
file4.new.new.new
i want to write a shell script that rename all such file with only single extension like
Code:
file1.new
file2.new
...
need help on this
Hi,
I have 2 files as below
FILE1.dat
Code:
co1|co2|co3
abnd|45.56|AZ
dkny|30.2|PA
sam|.23|VA
FILE.CTL
Code:
FILENAME|FILE1.dat
NO OF RECORDS|3
CHECKSUM|75.99
Could you please help me to write a shell script to compare
1. TOTAL RECORDS from FILE1.dat with NO of RECORDS in FILE.CTL
2.
I have two files.
I have been using awk to sum up multiple files, this is used to sum up the summary of server log parsing values, it really does speed up the final overall count but I have hit a minor problem and the typical examples I have hit on the web have not helped.
Here is the example:
cat file1
aa 1
bb 2
cc 3
ee 4
cat file2
aa 1
bb 2
cc 3
dd 4
cat file3
aa 1
bb 2
cc 3
ff 4
And the script:
cat test.
I have created a script which creates two files and reverses their contents if both the files are different.