10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file comp.pkglist which mention package version and release . In 'version change' and 'release change' line there are two versions 'old' and 'new' Version Change: --> Release Change: -->
Package list: nss-util-devel-3.28.4-1.el6_9.x86_64
Version Change: 3.28.4 -->... (1 Reply)
Discussion started by: Paras Pandey
2. UNIX for Beginners Questions & Answers
I was trying to awk out some data out of a text file.
Below is a sample file which I have
xxx ***Wed Jun 28 18:00:59 CDT 2015
avg-cpu: %user %nice %system %iowait %steal %idle
17.10 0.00 4.56 2.86 0.00 75.48
Device: rrqm/s wrqm/s ... (2 Replies)
Discussion started by: DevAnand
3. Shell Programming and Scripting
i want to grab lines from a file that are between two patterns (including the lines that contain the pattern).
here's what im currently doing:
awk '/bbb/,/fff/ && $0 !~ /ddd/' cdsnmp.sh
I want to grab lines between and including bbb... (5 Replies)
Discussion started by: SkySmart
4. Shell Programming and Scripting
I am searching something in multiple logs , actually an even ocuurs which get recorded in logs with a special word so rite now I am opening an individual log in vi and then searching it but total in the directory there are such 15 logs and it is very difficult to go one by one so... (1 Reply)
Discussion started by: punpun66
5. Shell Programming and Scripting
I am running a command from a remote server using ssh to different servers. I will get a output like below with 4 columns. I want to grab line which is having a coulmn which grate than or equal to 50. How can I do it with Awk or sed ??. I add a space to first row with sed 's/::/:: /g' to... (4 Replies)
Discussion started by: raghin
6. Shell Programming and Scripting
I have active log file i want to grep the last occurrence of the word in that log file the log file gets on increasing and increasing i want to fetch it from live file.
Please guide me, Thanks in advance (4 Replies)
Discussion started by: vidurmittal
7. Shell Programming and Scripting
i have a script that checks inside the file and find the start date and end date with time...........
TZ=`date +%Z`+24 ;b=`date +%Y-%m-%d`
for i in DBMaint.log
echo "Start Time:" >> /ednadtu3/u01/pipe/naveed/Report.txt
cat $i | grep... (3 Replies)
Discussion started by: ali560045
8. Shell Programming and Scripting
I have a csv ( comma seperated value) file and I want to search for a particular string in each line of that file only if it occurs only once in the line.
That is same string may be present more than once in a line but I want it to be greped only when it occurs just once.
Please advice... (17 Replies)
Discussion started by: Piscian
9. Shell Programming and Scripting
I have tried many times to add the string into the first line of the file or the middle of the file but could not find the solution.
I first tried by
$echo "paki" >> file
This code only append paki string at the end of file "file" but how can i add this "paki" into the first line or... (5 Replies)
Discussion started by: ali hussain
10. UNIX for Dummies Questions & Answers
I would appreciate it if any one can guide me in using awk perhaps sed in extracting some values from a long string.
here is an example.
.......some lines here........
........ aaaa bbbb cccc ddddd eeeee fffff gggg (time:hhhh)........
......some lines here also..........
How can I extract... (2 Replies)
Discussion started by: odogbolu98