10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello everyone,
im new here, and also programming with awk, sed and grep commands on linux.
In my text i have many lines with this config:
1 1 4 3 1 1 2 5
2 2 1 1 1 3 1 2
1 3 1 1 1 2 2 2
5 2 4 1
3 2 1 1 4 1 2 1
1 1 3 2 1 1 5 4
1 3 1 1... (3 Replies)
Discussion started by: satir
3 Replies
2. Shell Programming and Scripting
Hello everyone
I have a few hundreds of .mol2 files that has this pattern
@<TRIPOS>ATOM
2 H18 65.2220 Du 1 RES1 0.0000
@<TRIPOS>BOND
1 3 5 ar
@<TRIPOS>SUBSTRUCTURE
among them, some of the files are missing the line after the @<TRIPOS>BOND and they look... (2 Replies)
Discussion started by: Error404
2 Replies
3. UNIX for Dummies Questions & Answers
I have a file in which each line is the name of another file. Is there a way to serve them to the command line? For example, if the file contains
file1.txt
file2.txt
file3.txt
...
file9.txt
is there a way to insert them in the command as a batch?
If I ran a command like
grep... (4 Replies)
Discussion started by: wbport
4 Replies
4. Shell Programming and Scripting
Hi I have written the following piece of code to move all files with name *.sh to *.bak
the o/p i am getting is *.sh.bak
Pls help
cat filename | while read line
do
mv $line $line.sh
done
filename file conatins
file.sh
file1.sh
file2.sh
expected o/p is
file.bak (2 Replies)
Discussion started by: ultimatix
2 Replies
5. Shell Programming and Scripting
Hi,
I need convert a dump file in the following format : (please note that line numbers are provided for easy look)
Original file:
1 2007-10-2482.90 No trade 0 0.00 100000.00
2 100000.00
3 0.00
4 HOLD
5 2007-10-2589.75 Bought 1114 1114 100000.00 0.00
... (5 Replies)
Discussion started by: sabyasm
5 Replies
6. Shell Programming and Scripting
A newbie to shell scripting.....
I need some assistance in doing the following:
I have a system generated text file(a makefile basically).
Before I can execute the make command, I need to modify one section of this generated file.
The generated section is as follows:
# INCLUDE macro... (5 Replies)
Discussion started by: innocentspirit
5 Replies
7. UNIX for Dummies Questions & Answers
What is the command to count lines in a files, but ignore blank lines and commented lines?
I have a file with 4 sections in it, and I want each section to be counted, not including the blank lines and comments... and then totalled at the end.
Here is an example of what I would like my... (6 Replies)
Discussion started by: kthatch
6 Replies
8. Shell Programming and Scripting
My input file is
aaa
bbb
ccc
a1a
b1b
c1c
a2a
b2b
c2c
I want the output file to look like that:
aaa,bbb,ccc
a1a,b1b,c1c
a2a,b2b,c2c
How do I achieve this ? (8 Replies)
Discussion started by: Amruta Pitkar
8 Replies
9. UNIX for Advanced & Expert Users
can any one help
i have a file with this content file name hsnvalue.op
containing
HSN=0,tool=123
HSN=0,tool=123
HSN=0,tool=123
HSN=0,tool=123
HSN=0,tool=123
HSN=0,tool=123
i want to print only one value to another file final.out
:confused: (5 Replies)
Discussion started by: shafique
5 Replies
10. Shell Programming and Scripting
would any one please tell me which keys we used between opened vi files backward and forward
Thanks
Ayah (2 Replies)
Discussion started by: aya_r
2 Replies