10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to use egrep on multiple files and the results should be output to multiple files. I am using the below code in my shell script(working in Ksh shell). However with this code I am not attaining the desired results.
for file in... (4 Replies)
Discussion started by: am24
2. Shell Programming and Scripting
I'm new in awk and I need some help.
I have a folder with a lot of files and I need that awk do something in each file and print a new file with the output. The input file name should be modified when I print the outpu files.
Thanks in advance for help!
ciao (5 Replies)
Discussion started by: gabrysfe
3. UNIX Desktop Questions & Answers
ps –xyz >/tmp/proc 2>&1
Can anyone explain what does '2' and '&1' will do here?
Thanks to explain (1 Reply)
Discussion started by: kkalyan
4. Shell Programming and Scripting
Is there a way to keep the output of a script displayed on the terminal when it's run by itself, but suspend part of that output and only have a specific part delivered when it's piped to another script or program? I'm thinking something like the following pseudocode:
... (1 Reply)
Discussion started by: trigg
5. UNIX for Dummies Questions & Answers
I'd like to process multiple files. For example:
Each file contains several lines of data. I want to extract a piece of data and output it to a new file.
file1.txt ----> newfile1.txt
file2.txt ----> newfile2.txt
file3.txt ----> newfile3.txt
Here is... (3 Replies)
Discussion started by: Liverpaul09
6. Shell Programming and Scripting
I have a simple bash script that creates a folder ( I called it TEMP) in the current directory.
The question is: how do I direct the output of my awk script into folder TEMP?
Below is my attempt:
echo Enter input file:
awk... (4 Replies)
Discussion started by: Ghetz
7. Shell Programming and Scripting
When I do
time tar cvf /dev/st0 /mnt/junk >> /root/benchlog, I want it to put the output of the time command into the benchlog file, but it put /mnt/junk. How do I get it to put the output of the tar command? (1 Reply)
Discussion started by: jeriryan87
I just wrote a program in C to split a comma seperated string in to group of strings using strtok() function. The code is:
char *temp;//not used here but basically we extract one string after another using strtok() and assign to a string pointer defined like this.
... (3 Replies)
Discussion started by: SankarV
9. UNIX for Dummies Questions & Answers
How do I direct the output of an at command
at now < backupprogram
so that I see something happening. It says the job has been executed but I am not getting the tar file that my backup program on the computer anywhere at all
Please help me - I really am a struggling begginer. (1 Reply)
Discussion started by: Cynergetix
10. Filesystems, Disks and Memory
I'm trying to locate all files that do not contain the string /usr but do contain the string csh within the file called /etc/passwd. Then I would like to direct this output to a file called pout.
Does anyone one have suggestions on this one?
Thanks (2 Replies)
Discussion started by: klannon