11-19-2012
Your code has many improvement opportunities; e.g. use $5 instead of $4; the grep will also find numbers like 109920 (OK, not in col 5!), and, you can do all that in a one liner.
Give my proposal above a shot and post the results. btw - waiting until a disk is filled to 99% before counteracting may be too late ...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a text file below. How do i grab all the data between "05T00NPQSMR1" and "****" using awk ? Pls note that the text lines may not be fixed and text content is dynamic. Pls help. Thanks
Below is my code where $LOT_SUFFIX is my shell variable.
awk '/'"$LOT_SUFFIX"'/,/blah/'... (16 Replies)
Discussion started by: Raynon
16 Replies
2. Shell Programming and Scripting
suppose u have a file
AAAAAKKSKSKMSKMSKBNNSHNKSNJNMSYNMSBH
This is exactly wht the input is like
Question is i want to list wht is on the line 5 tht will be A
but Remember u want to extract in between say from 100 to 300
i tried using
awk 'BEGIN {FS=""} {print$100,$300}' file
but it will... (1 Reply)
Discussion started by: cdfd123
1 Replies
3. Shell Programming and Scripting
Hi All,
I am trying to grab a term which is just smaller and larger than the assigned value using the below code. But there seems to be some problem. The value i assign is 25 so i would expect it to output a smaller value to be 20 instead of 10 and 20 and larger value to be 30 instead of 30 and... (3 Replies)
Discussion started by: Raynon
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Can anyone please let me know the syntax / how to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 'system()' function and '${?}'.
I am in a process to send the mail automatically with an attachment to bulk users. I have used 'Mailx' and 'Unencode'... (0 Replies)
Discussion started by: manas6
0 Replies
5. OS X (Apple)
Does anyone know how to grab video (screen) on Terminal using ffmpeg (not X11).
I have written a unix library and I'd like to make a short movie (demo) of it.
Tried: I already own SNapz Pro2 but it hangs the system (I have an old Powerbook 15" PPC). I guess my system is too slow for version... (0 Replies)
Discussion started by: sentinel
0 Replies
6. Shell Programming and Scripting
Dear All,
I have a file in which there are 54 fields, i want to grab the all the lines and send to a new file where filed18 has lenght greater than 14. How can i do it without if condition and faster way:
currently i am reading file line by line and comparing the length
read fileLine... (9 Replies)
Discussion started by: bilalghazi
9 Replies
7. Shell Programming and Scripting
Hello Honourable Members,
I stuck into one issue, my server is migrating from UNIX to linux and ptree command does not work there.
I was working with pstree command in linux and need some help regarding the same.
suppose i have one line for example:
ram (121)--- sita... (3 Replies)
Discussion started by: singhabm
3 Replies
8. Shell Programming and Scripting
Hi,
What is the best approach to grab contents between
Changes
Dependencies
from the following example snippy
Changes in packages about to be updated:
bash-3.2-32.el5_9.1.x86_64
* Thu Jun 27 22:00:00 2013 Roman Rakus <rrakus@redhat.com> - 3.2-32.1
- Fixed a bug that caused... (2 Replies)
Discussion started by: ashokvpp
2 Replies
9. Shell Programming and Scripting
so i want to avoid external calls in my script, so im trying to do the following:
AllMyLogs="hello---nallo---wello---bollo
tello---zello---jello---kello"
OLDIFS="$IFS\\\n"
IFS="---"
set -- ${AllMyLogs}
IFS="$OLDIFS"
I want it to work in a way that, when i type this:
echo $2
I... (1 Reply)
Discussion started by: SkySmart
1 Replies
10. Shell Programming and Scripting
Not sure where the problem is. I can run the script without any issue using the following command.
. /opt/app/scripts/cdc_migration.sh
But it fails with the below error when I try it this way
/opt/app/scripts/cdc_migration.sh
/opt/app/scripts/cdc_migration.sh: line 65: return: can only... (1 Reply)
Discussion started by: svajhala
1 Replies
LEARN ABOUT CENTOS
gnome-screenshot
GNOME-SCREENSHOT(1) GNOME-SCREENSHOT(1)
NAME
gnome-screenshot - capture the screen, a window, or an user-defined area and save the snapshot image to a file.
SYNOPSIS
gnome-screenshot [ -c ] [ -w ] [ -a ] [ -b ] [ -B ] [ -p ] [ -d SECONDS ] [ -e EFFECT ] [ -i ] [ -f FILENAME ] [ --display
DISPLAY ]
DESCRIPTION
gnome-screenshot is a GNOME utility for taking screenshots of the entire screen, a window or an user-defined area of the screen, with
optional beautifying border effects.
OPTIONS
-c, --clipboard
Send the grab directly to the clipboard.
-w, --window
Grab the current active window instead of the entire screen.
-a, --area
Grab an area of the screen instead of the entire screen.
-b, --include-border
Include the window border within the screenshot.
-B, --remove-border
Remove the window border from the screenshot.
-p, --include-pointer
Include the pointer with the screenshot.
-d, --delay=SECONDS,
Take the screenshot after the specified delay [in seconds].
-e, --border-effect=EFFECT,
Add an effect to the outside of the screenshot border. EFFECT can be ``shadow'' (adding drop shadow), ``border'' (adding rectangu-
lar space around the screenshot) or ``none'' (no effect). Default is ``none''.
-i, --interactive
Interactively set options in a dialog.
-f, --file=FILENAME
Save screenshot directly to this file.
--display=DISPLAY
X display to use.
-?, -h, --help
Show a summary of the available options.
In addition, the usual GTK+ command line options apply. See the output of --help for details.
AUTHOR
This manual page was written by Christian Marillat <marillat@debian.org> for the Debian GNU/Linux system (but may be used by others).
Updated by Theppitak Karoonboonyanan <thep@linux.thai.net>, Tom Feiner <feiner.tom@gmail.com>, Cosimo Cecchi <cosimoc@gnome.org> and oth-
ers.
May 14, 2013 GNOME-SCREENSHOT(1)