10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am looking for help in processing of those options: '-n' or '-p'
I understand what they do and how to use them.
But, I would like to use them with more than one file (and without any shell-loop; loading the 'perl' once.)
I did try it and -n works on 2 files.
Question is:
- is it possible to... (6 Replies)
Discussion started by: alex_5161
6 Replies
2. UNIX for Dummies Questions & Answers
HI All,
I want to know if it is possible to print the same message but into 2 different files in the same command?
Something like
.
..
...
echo "Text" >> file1 && file2
this is because i creating a script which i use a log but i don't want to duplicate lines of command just to... (5 Replies)
Discussion started by: lordseiya
5 Replies
3. UNIX for Dummies Questions & Answers
Hi everyone,
I've a requirement to modify an existing line which is common to multiple files. I need to replace that existing line with a new line. I've almost 900 ksh files to edit in the similar fashion in the same directory.
Example:
Existing Line: . $HOME/.eff.env (notice the "." at the... (3 Replies)
Discussion started by: kaleem.adil
3 Replies
4. Shell Programming and Scripting
I need to insert <filename + comma> into each line of multiple files.
Any idea how to script that?
Regards,
Manu (5 Replies)
Discussion started by: linux.yahoo
5 Replies
5. Shell Programming and Scripting
Hi,
I ran two crontab commands
using:
crontab program1
crontab program2
However when I type crontab -l only the second cron job shows up, how do I see all cron jobs running and how do I edit all at the same time
Thanks in Advance
S:D (10 Replies)
Discussion started by: walforum
10 Replies
6. UNIX for Dummies Questions & Answers
I have several files (around 50) that have the similar format. I need to extract the 5th line from every file and output that into a text file. So far, I have been able to figure out how to do it for a single file:
$ awk 'NR==5' text1.txt > results.txt
OR
$ sed -n '5p' text1.txt > results.txt... (6 Replies)
Discussion started by: oriqin
6 Replies
7. Shell Programming and Scripting
Hopefully the title summarized what I need help with. I have multiple files that I would like to concatenate in bash.
ie:
cat file1 file2 file3 > bigfile
except I do not want to include the first line from each file (). Any help? Thanks. (6 Replies)
Discussion started by: sanimfj
6 Replies
8. Shell Programming and Scripting
I have a string that I need to append to 3 files.
Say,
$ echo "Hello"
I want to append this “Hello” to three files, file1, file2 and file3.The files are all in different directories and the file names have no common pattern.Can I do it in one line? If yes, how? :confused: (2 Replies)
Discussion started by: zombiezparadize
2 Replies
9. Shell Programming and Scripting
hi gurus ,,
I have multiple files with same file pattern..in a particular directory
for ex: file20061101.trf
file20061102.trf
file20061103.trf
Each of the file has a header as column names..
My questions is how can i eliminate the first row of each of these... (11 Replies)
Discussion started by: sish78
11 Replies
10. UNIX for Dummies Questions & Answers
dd conv=ascii if=100.PCN of=foo
On paging the 'foo' file i get conversion of the selected file. How can I get multiple 100.PCN's into 1 'foo' file.
Usually all my work related files have an extension of .PCN or 001. Upon selecting if=*.* No ouput file is generated. (2 Replies)
Discussion started by: buRst
2 Replies