10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everybody,
I have the following input file:
START ANALYSIS 1
DATA LINE
DATA LINE
DATA LINE
DATA LINE
Libray /home/me/myLibrary
Source library_name_AAAAA
DATA LINE
DATA LINE
DATA LINE
BEGIN SOURCE ANALYSIS
Function A
Function B
Function C
Function D (4 Replies)
Discussion started by: namnetes
4 Replies
2. Shell Programming and Scripting
Hi,
I am running a script sample.sh in bash environment .In the script i am using sed and awk commands which when executed individually from terminal they are getting executed normally but when i give these sed and awk commands in the script it is giving the below errors :-
./sample.sh: line... (12 Replies)
Discussion started by: satishmallidi
12 Replies
3. Shell Programming and Scripting
Hi,
i need to automate installation (console) of product and found except as solution.iam new to expect and know basics of expect.
i am struck with the following cases and need help for them to continue:
1) in every screen of installation at the end we have kind of buttons which we need to... (7 Replies)
Discussion started by: sai Harika
7 Replies
4. Shell Programming and Scripting
Hi!
I have a difficult problem, to step up a unknown version number in a text file, and save the file. It would be great to run script.sh and the version gets increased.
Example the content of the textfile.txt
hello
version = x
bye
This include three steps
1. First find the char after... (2 Replies)
Discussion started by: Beachboy72
2 Replies
5. UNIX for Dummies Questions & Answers
Hello
I'm searching some kind of example (or ready-made solution, but I don't really want it, because I want to learn awk more), to make something like a parser in awk for something like this (I put example, because I don't really know how to explain this):
line1=1
line2=0
line3=1... (23 Replies)
Discussion started by: jormung
23 Replies
6. Shell Programming and Scripting
Hi all
Input
group1 user1
user2
user3
group2 user4
user5
user1
group3 user6
user7
user8
Desired output
group1
group2 (12 Replies)
Discussion started by: wakatana
12 Replies
7. Shell Programming and Scripting
I am wondering if there is a way via grep and sed to extract a string that is on the 2nd line below a known marker as in this example:
TextRel 203 0 0 "WELL:"
SetPosAbs 1287 -6676
TextRel 210 0 0 "AEP #2"
The marker is WELL:, but the string I need is "AEP #2". Can grep/sed handle this... (19 Replies)
Discussion started by: phudgens
19 Replies
8. UNIX for Advanced & Expert Users
What is Stream Devices and Stream pipes?
Explain Advanced I/O ? (1 Reply)
Discussion started by: thangappan
1 Replies
9. UNIX for Advanced & Expert Users
Hey all,
Can I put sed command inside the awk action ?? If not then can i do grep in the awk action ??
For ex:
awk '$1=="174" { ppid=($2) ; sed -n '/$ppid/p' tempfind.txt ; }' tempfind.txt
Assume: 174 is string.
Assume: tempfind.txt is used for awk and sed both.
tempfind.txt... (11 Replies)
Discussion started by: varungupta
11 Replies
10. UNIX for Dummies Questions & Answers
My goal is simply to output a listing of all files in a directory and all subdirectories, one per line, ****with their full path****.
The *** part is what I can't figure out. I can get one on a line and I like having the extra info, so I'm using ls -Rl right now.
But what I get is just the... (2 Replies)
Discussion started by: bostonrobot
2 Replies