9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am looking for a shell script which serves the below purpose.
Please find below the algorithm for the same and any help on this would be highly appreciated.
1)set of strings need to be replaced among set of files(directory may contain different types of files)
2)It should search for... (10 Replies)
Discussion started by: Amulya
2. Shell Programming and Scripting
I understand that the SED command reads all the lines in the file before adding a required line to the end of the file.
Is there another command that adds a line to the end of files without reading the entire file....
SED is increasing the processing time as the number of lines in each of the... (1 Reply)
Discussion started by: Kanch
3. UNIX for Dummies Questions & Answers
I have a file (lets say filenames.txt) which contains a list of file names.
Is there a way I can append a prefix to the filenames as below,
Thanks much for your help
Freddie (3 Replies)
Discussion started by: dsfreddie
4. UNIX for Advanced & Expert Users
this is my SQL script
$ wc -l insert_into_customers.sql
85601 insert_into_customers.sqlI wish to cut this file into 9 files each 10000 lines (the last one less)
$ wc -l insert_into_customers_00*.sql
... (1 Reply)
Discussion started by: slashdotweenie
5. Shell Programming and Scripting
I tried searching but most 'search and replace' questions are related to one liners.
Say I have a file to be replaced that has the following:
$ cat testing.txt
This is the input file: (3 Replies)
Discussion started by: DeuceLee
6. UNIX for Dummies Questions & Answers
Quick question. I have a file with the following records:
I wold like to do the following:
1. Add... (1 Reply)
Discussion started by: chumsky
7. Shell Programming and Scripting
I need to add leading zeros in a floating point numbers.
The length of the number should be 13 including decimal.
The input number is changing so number of leading zeros is not fix.
22345.500 ... (4 Replies)
Discussion started by: reeta_shri
8. Shell Programming and Scripting
Hi! I have a large set of pairs of text files (each pair in their own subdirectory) and each pair shares head/tail (a couple of first and last lines) but differs in the middle part. I need to delete the heads/tails and keep only the middle portions in which they differ. The lengths of heads/tails... (1 Reply)
Discussion started by: dobryden
9. Shell Programming and Scripting
Hi All, I really need your help. I am a begginner in shell script and I believe this is a very simple issue.
I have in my directory, n-files, like 1.dhm, 2.dhm, 3.dhm.
These files have 1 column with 1 value per line, like:
20 (3 Replies)
Discussion started by: dhuertas