10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I'm trying to print out the contents of a folder into a .txt file.
The code I'm trying amongst variations is:
ls -1 > filenames.txt
but it prints them all on the same line ie.
how can I change this?
Please... (2 Replies)
Discussion started by: newbie100
I have a very tricky problem, not able to solve it. Hence asking this question.
I have a code portion like this -
(void)fprintf(trace_fp,"parse_msg1 in_buf = %s \n",... (0 Replies)
Discussion started by: nsinha
3. Shell Programming and Scripting
I need to parse a file and depending on a patern match(in the insert job line) separate files have to be created with a line added (content in file2).
Mapping for pattern match and add line :
for Alpha 123
for Beta 234
for Gamma 345
no match (goes into another file)
File 1 ... (3 Replies)
Discussion started by: w020637
4. Shell Programming and Scripting
I have two files:
file-gene_families.txt that contains 30,000 rows of 30 columns. Column 1 is the ID column and contains the
Col1 Col2 Col3 ...
One gene-encoded CBPs ABC 111 ...
One gene-encoded CBPs ABC 222 ...
One gene-encoded CBPs ABC 212 ...
Two gene encoded CBPs EFC... (7 Replies)
Discussion started by: yifangt
5. Shell Programming and Scripting
I have three separate text files which has only one line and i want to combine these lines in one text file which will have three lines.
1265 6589 1367
0.98 0.36 0.5
So, I want to see these three lines in the... (9 Replies)
Discussion started by: senayasma
6. Shell Programming and Scripting
I have a text file with lot of rows like..
Action & Adventure|2012: Supernova NR|2009-11-01 00:01:00|2010-05-01 23:59:00|Active|3
Action & Adventure|50 Dead Men Walking|2010-01-05 00:01:00|2010-06-30 23:59:00|Active|3
Action & Adventure|Afterwards|2009-11-26 00:01:00|2010-03-26... (3 Replies)
Discussion started by: ramse8pc
7. Shell Programming and Scripting
I have a pipe delimited file with 1 million records. I need to validate each line by counting the number of delimiters, if any line fails to have the specified number of delimiters, taat line has to be sent to a reject file.
if code provided, it is highly appreciated, and... (22 Replies)
Discussion started by: anandapani
8. Shell Programming and Scripting
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo "Content-Type: text/html"
echo "Content-Disposition: inline"
echo "<B> <U>NAME ID Address </B> <br /> "
echo "`cat FILE`"
echo... (4 Replies)
Discussion started by: siri_886
9. Shell Programming and Scripting
I m trying to display the processes of each user but its coming in one line like
PID TTY TIME CMD 7661 ? 00:00:01 sshd 7662 pts/6 00:00:00 bash
i want the output to be like
PID TTY TIME CMD
7661 ? 00:00:01 sshd
7662 pts/6 00:00:00 bash
my code is
proc=$(users)... (5 Replies)
Discussion started by: mathur
10. Shell Programming and Scripting
I have a file with contents like
I want the output as
china|india|france|japan|italy|germany|.|.|. (3 Replies)
Discussion started by: hidnana