Unix/Linux RSS

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • shell script - generate a report with dir and # files

    Gurus,I've a command which generates output as below:foo.com shahb 485 /ms4/3C/12/70674foo.com shahb Aix /ms4/62/12/67626foo.com shahb Data_Growth /ms4/7C/1E/35066foo.com shahb "Deleted Messages" /ms4/21/08/30698foo.com shahb Drafts /ms2/31/1F/13832foo.com shahb DR /ms4/32/06/96855col 1 - d...

    1 answers | 1040 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • the <<<$DATA issue

    When I need to modify vars inside while loop, I try to use <<<$DATAinstead of <file form. I hit the problem with the <<<$DATA form, asfollows.Generally, the following two forms are expected to be equivalent,no ?:1) while read x; do ; done <file2) DATA="`cat <file`"; wh...

    1 answers | 825 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • cat file_name | grep "string_A|string_B" does not work

    Sometimes I need to find two different strings in a file with onecommand. For example, I need to list the lines in the file "file_name"which has either "string_A" or "string_B". The 2 strings are totallyunrelated, so wildcard "*" is not applicable in this case. I need tokeep the correct sequence...

    1 answers | 566 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • SED: replace all the underscores in the first word only.

    I start with this:my_var_a my_var_amy_var_b my_var_band want to get it to this:my-var-a "'$my_var_a'"my-var-b "'$my_var_b'"But I'm really having trouble figuring out how to replace theunderscore characters in the first word/field. I would like to keep itto using sed if p...

    3 answers | 475 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • Who Killed Benazir Bhutto ? Washington Post Comments

    Eric Gisse em gnu.emacs.help escreveu :I'll assume Musharraf because Bhutto said to assume Musharraf ifanything happened to her.What the ****, I really dont know what does that have to do with Emacs....

    0 answers | 224 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • ksh : how do I de-reference a variable using another variable

    say I have :-x=3and I want to use this variable to access the third positionalparameter of a script ($3) then the following won't work :-echo $xas that will give me the integer value "3" but I want the value of$3 which is something completely differentwhat is ksh syntax here please?e.g.# ba...

    0 answers | 452 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • ls -lFT output

    The following output from ls -lFT-rwxr-xr-x@ 1 scott scott 306 11 Jan 00:13:52 2008 cleanup.sh*-rwxr-xr-x@ 1 scott scott 42 11 Jan 00:14:24 2008 utf-8_test.sh*I understand most of what is going on here but the '@' character has mebeat as i can't find a reference to it in man ls.Al...

    2 answers | 405 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • rsh to host and run command as another user

    I have a script, in which I rsh to a host and run a command based on avariable. However, I am having issues with this portion of thescript. Would appreciate any ideas.exampleFHME=/usr/local/foo/I want to rsh to machine b from machine a and run a command as userfoofrom machine a#rsh -n machineb "...

    1 answers | 468 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • Know my the IP/interface being used by current tty/shell

    I've asked on comp.unix.solaris, but no luck.I have a host with multiple interfaces; I wish to know the IP (belonging toone of the these multiple interfaces) is being use by my current tty/shell(started via rsh, ssh, telnet, etc) - how can I find out?(In simplest form - let's say I for...

    2 answers | 523 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • plotting from the shell

    I have a multiple comma delimited data files with 6 columns of numericdatae.g.time (s), value1, value2, value3, value4, value5time (s), value1, value2, value3, value4, value5I want to plot all of this data (time vs value, all on one plot)directly to an image file for later viewing using a shell...

    1 answers | 370 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • Bash POSIX mode and ${var/PATTERN/STRING}

    Thanks Stephane,My next question then is whether there is a shell that you wouldrecommend that adheres as closely as possible to PSIX (that is, PSIXand nothing else) under a suitable mode....

    1 answers | 219 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • election ballot editer in (Ba)sh demo'ed on YouTube

    Wed, 09 Jan 2008 05:30:59 +0000, John W. Krahn wrote:A federal law in which country?The video is talking about voting software for the usa. They give somestate names as examples.>It can't be Canada because we use paperballots. :-)>>>JohnIt must be nice. When I went to vote away...

    0 answers | 706 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

QUESTION ON "Unix/Linux"
EMSDN.COM