Cut command options

Hi
My log file contains following entries.
How do i exclude the particular partition from the log file.
cat diskspace.log
============
/dev/vx/dsk/datadg01/sapdata1 22020096 21999698 19125 100% /oracle/ASM/sapdata1
/dev/vx/dsk/datadg01/zone02-cdinst 40960000 40375764 548549 99% /zone/zone02/cdinst
/dev/vx/dsk/datadg01/sapdata2 21504000 21494130 9257 100% /oracle/ASM/sapdata2
/dev/vx/dsk/datadg01/zone02-sapdata1 10240000 9711511 495463 96% /zone/zone02/sapdata1
/dev/vx/dsk/datadg01/zone02-sapdata3 20480000 18769985 1603144 93% /zone/zone02/sapdata3
I want to exclude /dev/vx/dsk/datadg01/sapdata1 and /dev/vx/dsk/datadg01/sapdata2 .
Is any cut command option can use here by specifying the paticular patition to exclude.

The O/P may find this version a bit easier to maintain:
egrep -v -e '^/dev/vx/dsk/datadg01/sapdata1' -e '^/dev/vx/dsk/datadg01/sapdata2' diskspace.logThe trick is that multiple {font:Courier}-e{font} options allow multiple search expressions performed in a logical OR, so any lines matching either pattern get elided.
I've added single quotes around the args because the caret ({font:Courier}^{font}) is special in many shells. The square brackets are too, but I did not need them here.
Can take a similar approach using sed(1), too.

Similar Messages

  • Where is "cut" command in Mac? Why I cannot cut a file/folder and paste it somewhere else?

    I'm a professioinal who made the big step to pass from Windows to Mac. I do not regret it but there're things I cannot understand and i supposed being much easier or "native" in Mac.
    Tipical example is the Cut command. I see it in Finder but why doesn't if work? Drag and drop do not copy but works like a ct and paste! I think if for mac this is enough Apple is gonna make it work bacause is a HUGE limit, specially for people like me who manage thousands of photos and cannot risk to drop huge amounts of files in a go or in a wrong folder of such.
    Please tell me I'm wrong and there's a way to sort it out!
    Thanks.
    D

    You can cut and paste items with Finder, a new feature in Lion, but it doesn't use the command-X "cut" command and is not very intuitive.
    Highlight the item(s) to be moved, and type command-C to copy it. Then navigate to the destination window, and rather than pressing command-V (or Edit>Paste item) , instead press Option-command-V (or hold down option when using the Edit menu). This changes "paste" into "move item here", i.e, the item will disappear from where it was copied. The result is equivalent to a "cut and paste."

  • Why export audio to movie command not visible and detect cuts command is not working in 64bit mode?

    Does anyone know why export to audio disappear from menu in 64bit mode?
    Why detect cuts command is not working well in 64 bit mode?
    I tested on several machines (brand-new iMac, brand-new MacPro with 10.8 OS, MacPro with 10.6.8),and everythig wotks in 32 bit mode. As I switch to 64 bit mode detect cuts only put one marker at the begening of film.
    I also noticed that Firewire output option in 64bit mode is not avaible.
    Is there a certain film format that I have to use to make it work? I tried DV PAL, but I had ther same result.
    Thanks a lot.

    Hi
    Those functions are not available when Logic is running in 64bit mode
    http://support.apple.com/kb/TS3171
    CCT

  • My iPhoto images won't show, and Photo Library Repair will not open when I command-Option-click on the iPhoto icon.

    Some of my iPhoto albums will not show, as below:
    When I click on any of those individual albums, for a brief split second I can see the images displayed, but then they revert to this:
    Then if I click on any of those images, this image appears:
    I have real a lot of posts that say to click Command+Option while opening iPhoto and this will open the Photo Library Repair window, but... this is not happening. Each time I do it, iPhoto just opens as it normally does. I've tried about 10 times, closing iPhoto completely. I've tried through the dock icon and through the applications listing. Neither will open anything other than regular old iPhoto.
    Can anyone help me and suggest what I may be doing wrong, or are there any alternative was to open Photo Library Repair so I can rebuild my library? I really don't want to lose all of those photos, especially since some are really important and irreplaceable.
    Thanks.

    I have real a lot of posts that say to click Command+Option while opening iPhoto and this will open the Photo Library Repair window, but... this is not happening.
    Be sure you're holding the correct keys and that you're holding them long enough. Depress them before clicking on iPhoto and don't let go until the menu shows up.
    If you don't want to lose those photos, make a back up now. Hopefully it's not too late.

  • Need to go into photo library to retrieve photos that technical support lost at the store.  Told to do "command Option" at the same time - than click on "I-photo"  then check the box "repair the i-photo library.... I have had two appointment at the store

    How can i retrieve my photo library that got lost by your techs at the apple store?

    First to locate your library on the hard drive launch iPhoto with the Option key held down so you get this window:
    Your library should be displayed in the window and it's location displayed below the window when clicked on.
    If that fails to locate your library download and run Find Any File to search for a file named "ThumbJPGSegment.data" which is a file common to all versions of iPhoto libraries.
    FAF can search areas that Spotlight can't like invisible folders, system folders and packages. If there's a library hiding somewhere on your hard drive FAF will find it.
    Once you find the library you can try to repair if it doesn't open as it should by trying this:
    1 - launch iPhoto with the Command+Option keys held down to open the First Aid window.
    2 - Run Option #4, Rebuild Database.
    OT

  • Holding down the option key when booting my iMac lo longer shows me my bootable external drives, the system just boots up to the main system. Also, holding down command, option,P,R no longer zaps the p-ram. the system just boots up.

    Holding down the option key when booting my iMac lo longer shows me my bootable external drives, the system just boots up to the main system. Also, holding down command, option,P,R no longer zaps the p-ram. the system just boots up normally. Why do these key fonctions no longer work?

    It could be your timing if on a bluetooth keyboard.  I find it best to hit the keys as soon as i hear the chime, release and hit them again but this time holding them before the chime ends....like a fake pump in football.
    But....you can always open up system preferences, startup disk, and select your bootable clone for booting.  If it doesn't show up there, the Mac doesn't think it's bootable.

  • Wildcarrd character in file communication channel ( Run OS Command Option )

    We have problem while executing the "move ( MV ) "  command with wildcard character ( '*' )  in file communication channel (Run Operating System command option ). Command is not executing properly.
    e.g. mv /archive/test* /output/
    have anyone experienced the same problem ?
    Thanks & Regards,
    Dijesh Tanna.

    As far as i know, that doesnt work.
    In Unix environment, the below code will work
    name=`test*`
    target=`xxxfolder`
    file_list=`find $name -type f`
    for fname in $file_list ; do
        echo "Moving: " $fname
        mv -Eignore $fname $target
    done
    Edited by: Praveen Gujjeti on Apr 12, 2010 5:44 PM
    Edited by: Praveen Gujjeti on Apr 12, 2010 5:46 PM

  • How to configure File Adapter along with OS command option

    Hello,
    I want to configure a scenario using File Adapter with OS command option.
    How to use that option in channel configuration of File Adapter.
    What is the default path where it is actually runs this OS command?
    Thanks,
    Soorya

    >
    surya venkat wrote:
    > Hello,
    > I want to configure a scenario using File Adapter with OS command option.
    > How to use that option in channel configuration of File Adapter.
    There are two ways to use the Os command in the file adapter.
    Lets talk about the sender File Adapter.
    First: Run operative system Before Message Processing
    Whenever any operation needs to be performed uppon the source file Just before XI picks it up.
    e.g. Calculate any hash code, backup the file to a given location, create a log at os level, etc...
    ... After Message Processing
    After Xi has processed the message, you can trigger a new os level command:
    e.g. Trigger a mail, check if the archiving was successful, etc.
    > What is the default path where it is actually runs this OS command?
    >
    Theres no default path, you assign the desired path in the Comm Channel configuration.
    > Thanks,
    > Soorya
    I hope it helps.

  • Force quit command option esc does not work in snow leopard

    When I try to use this command I am sent to front row. I can force quit throught the apple menu. This began when I upgraded to Snow Leopard.

    This might clear up some wierd inputs:
    PRAM RESET
    Zap the PRAM
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • Command, option, ctrl, fn keys not working

    thanks to a visiting dog who got tangled up the power adapter my laptop ended up on the floor, wide open with the keyboard popped out. I have inspected the connector cable and it looks OK to the naked eye. I disconnected the keyboard cable and re-connected.
    When using an external USB keyboard all keys function normally. When using the built-in keyboard the only keys not working are the command, option, ctrl and fn keys. I have restored modifier keys to default (I had never changed them) but this did not help. I also toggled the "use F1-F12 to control..." option in the keyboard preferences to no avail and have restored keyboard shortcuts to no avail.
    Is my keyboard shot? Is the a pref file I might delete?

    Hi, Mel. If the external keyboard works properly, I'm afraid you have to figure your built-in KB has been dogged to death. I hope the pet owner will do the right thing by you. I also hope the KB is all that was damaged. How are your adapter cord, plug, and DC-In port? Does your battery still charge OK?
    Whenever anything visits my house that's active, inattentive, and built low to the ground, my Powerbook runs on battery power only. I haven't seen one yet, but the new magnetically-connected, easily- and harmlessly-detached MacBook Pro AC adapters sound like a superb idea to me. Too bad our PBs can't use 'em.

  • Left side shift/command/option keys not working

    I have a 2010 11" macbook air and out of nowhere my left side Shift Command Option keys are not working at all. Anyone had this issue? or know what I can do to solve it?
    I have tried connecting my keyboard to it and doing the reset PRAM, SMC, PMU with no luck. I tried installing new Mountain Lion OSX hoping it was a software issue and it is still not working.

    I had a key fail on my MBA and the problem progressed to other keys.  It turned out to be the electoonics in the keyboard, not the individual keys.  When it progressed to W, I had to replace it;)  Given you have two keys failing at once it could be a similar problem.

  • Command-option-eject key combination results in immediate wake from sleep

    Howdy!
    After updating to 10.4.9 from 10.4.8 with the Delta PPC updater, my PowerBook 'acquired' the delayed eject key response (i.e., it now has to be held for at least ~0.5 sec to register and to have the eject icon displayed on screen, as opposed to the previous 'tapping-is-sufficient' behavior). Other than learning about the unannounced new behavior the hard way, this is no longer a problem.
    At the same time, however, if I put the PB to sleep with the combination command-option-eject it wakes up exactly two seconds after going to sleep (as recorded in system.log). This does not happen if I choose sleep via the Apple menu, or pressing ctrl-eject or the power button.
    Usual voodoo - repair permissions, inspect/move login items, safe boot, PRAM and NVRAM resets - already performed, without changing behavior.
    Hints? Suggestions?
    PowerBook G4 1.67GHz, 1GB RAM, 128MB VRAM, 100GB HDD   Mac OS X (10.4.9)  

    The problem seems to have been resolved by upgrading to Leopard. I can now use the combination Option-Command-Eject to pu the PowerBook to sleep and it will stay in that state until woken by pressing any key, or opening the display if it has been closed after the PB went to sleep.
    The issue was not answered, anyway, since it was never resolved while the PB had Tiger installed, and after the problem developed. I am choosing this option to simply close it.

  • Problem accessing Activity window using Command-Option A

    Until a couple of weeks ago, I was able to download an Internet video file by pressing Option-Command A and then double clicking the largest file while pressing option.  Now, nothing happens when I press Command-Option A.  Any ideas?

    The activity window is absent from Safari 6.

  • Zooming in, used to press Command-Option + or - to zoom in on my old PB....

    Zooming in, used to press Command-Option + or - to zoom in on my old Powerbook in Tiger....
    Leopard doesn't have that function??? was nice to zoom in when i wanted. anyone have any idea what happened to this function??
    thanks,
    e

    The zoom command is" command +" or "command -" there is no
    "Option" in it.
    -mj

  • Cut command in TcL?

    Hi,
    I was wondering if there is a cut command in TcL.  I'm trying to accomplish this:
    # set variable
    set Name [exec "show run | grep hostname | cut -d" " -f2"]
    # Show Hostname
    puts $Name
    Router_Hostname
    I can do this, but can I cross between IOS.sh & TcL.sh?
    R1#terminal shell
    R1#show run | grep "^hostname" | cut -d" " -f2
    R1

    Hi Cory,
    The 1 is an index number to say which item of the list you are requesting.  Lists in Tcl are zero based indexed, so in this example item 0 will be the word "hostname" and item 1 would be the actual hostname of the device.
    I guess one key point that may not be totally obvious is that the square brackets are used for command substitution and everything within the brackets are treated as a single command.  Also everything within and including the brackets is substituted with the result of that command.  Because of this substitution, commands can be nested as seen here.  The innter ommands are done first, the results are then substituted into the outter commands.  So in my example the split command is executed on the Name variable the result is substituted into the lindex command.  Then the lindex command is executed and the result is substituted into the set command.
    Mike

Maybe you are looking for

  • Performance with txkWfClone.sh

    Hi list, According to Note: "Autoconfig Performance Issue Running txkWfClone.sh After Applying ATG_PF.H Rollups [ID 458443.1]" there is a performance problem with script txkWfClone.sh. Right now, I am running "perl adcfgclone.pl appsTier" command in

  • Why is my embedded form not displaying correctly?

    Form will not resize on my webpage?

  • TV as external display?

    I'm a sound editor for picture, and I would like to be able to play back QuickTime movies on a TV screen. I would like to set up a regular old tube TV with RCA or S-video input as an external display for my MacBook Pro. I would ALSO like to run an ex

  • ITunes App Store turning into cesspool

    People are putting Apps on the App Store that describe features of the App and charging for those features in In App Purchases. I bought a printing application that looked good from the description. Says right in the description, "Prints PDF". So I b

  • Keyword ALL errors

    Hi, I am working with BPC 7.0 SP7 . We have created data manager packages to load data from one application to another application. For this, we have implemented the BADI "DAPP" . To select the dataset to be copied to the destination app we are using