10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have files:
sum_<INPUT FILENAME>.YYYYMMDDhhmmss.csv
and
sum_details_<INPUT FILENAME>.YYYYMMDDhhmmss.csv
I have no idea, what is input filename, but in the code I would like to catch them in case
I process them in the loop above case statement
for *.${Today}.*.txt... (3 Replies)
Discussion started by: digioleg54
3 Replies
2. Shell Programming and Scripting
Hi all:
i need to run a rather simple command-line argument:
head -200 input > output
However, I need to do it on several files, all in the same directory.
Is this possible? (2 Replies)
Discussion started by: owwow14
2 Replies
3. UNIX for Dummies Questions & Answers
Readers,
Reading a previous post about comparing files using awk ('awk-compare-2-columns-2-files-output-whole-line', https://www.unix.com/shell-programming-scripting/168432-awk-compare-2-columns-2-files-output-whole-line.html), it is possible to adjust this, so that regular expression can be used... (8 Replies)
Discussion started by: linuxr
8 Replies
4. Programming
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Discussion started by: jessy83
1 Replies
5. Shell Programming and Scripting
Hi,
I have a bunch of records within a directory where each one has this form:
(example file1)
1 2 50 90 80 90 43512 98 0909 79869 -9 7878 33222 8787 9090 89898 7878 8989 7878 6767 89 89 78676 9898 000 7878 5656 5454 5454
and i want for all of these files to be... (3 Replies)
Discussion started by: amarn
3 Replies
6. Shell Programming and Scripting
I have 3 files names as HU123.IHS ,SU345.IHS DU567.IHS
I have written a script to copy the files to the destination server but I am getting the error.
/bin/cp '/dun/homes/11.3.7/packages/HU*.IHS' /dun/homes/11.3.7/Target
But I am getting one error :-
/bin/cp: cannot stat... (1 Reply)
Discussion started by: maitree
1 Replies
7. Shell Programming and Scripting
Hi All,
I am using the awk command to replace ',' by '\t' (tabs) in a csv file. I would like to apply this to all .csv files in a directory and create .txt files with the tabs.
How would I do this in a script?
I have the following script called "csvtabs":
awk 'BEGIN {
FS... (4 Replies)
Discussion started by: ScKaSx
4 Replies
8. Shell Programming and Scripting
Hi All,
I have a file with the contents as below.
Current_path/file1
Current_path/file2
Current_path/file3
Now i want a regular expression to copy this files to
cp Current_path/file1 HOME_DIR/Current_path/file1
cp Current_path/file2 HOME_DIR/Current_path/file2
cp Current_path/file3 ... (2 Replies)
Discussion started by: girish.raos
2 Replies
9. Shell Programming and Scripting
This should be an easy question for you gurus. :)
How can I create a regular expression to match all files in the current directory that have only one period in their file name, and also not contain the string "abc" before the period?
It would match:
foo.txt
foobar.log
It would not... (4 Replies)
Discussion started by: blondie53403
4 Replies
10. UNIX for Dummies Questions & Answers
Hi,
Does anyone know if it is possible to override the GID which files have when they are created in a specific folder?
I want the given GID for the folder to apply to the new files created in the folder, no matter what group the owner of the files have...
I have tried sticky bits but doesn't... (1 Reply)
Discussion started by: linge
1 Replies