Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #4K
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for kneiel

Hi i am trying to write a script to match a '' at the END of the line. For eg. i have a file Temp1 which contains :- [code] a = b + c \ +d; printf("\n"); [/code] Objective: To match the '' in the 1st line and NOT the …

Member Avatar for cfajohnson
-1
877
Member Avatar for kneiel

My input file looks like this [code] abc def \ ghi jkl && mno || hju [/code] My objective: to replace '' with line 2 newLine=`sed -n "2 p" inputFile` sed -n 's/\\/'"$newLine"'/p' inputFile | tee inputFile When i do this, the output i get is -> abc def abc …

Member Avatar for kranny
-1
88
Member Avatar for axeeffect2002

Hi, I am trying to log a portion of the log file depending upon the "WorkOrderNumber" and "level". The shell script i've written is as follows:- [CODE]cat input.log | awk '/\[WorkOrderNumber/' | awk /120600012/ | awk /INFO/ | tee log.vw[/CODE] For a particular WorkOrderNumber, the record is very long (4253 …

Member Avatar for axeeffect2002
-1
405
Member Avatar for kranny

I want to write a script where in i can kill the top processes and run this script for every 5 minutes.How to extract parameters from top command

Member Avatar for kranny
-1
168
Member Avatar for lipun4u

Can somebody suggest me, which book is best for shell script and available in India ??

Member Avatar for kungle
-1
92