Crossposting is bad. A question which could be answered on two different sites is not a good question. Perhaps it needs to be more reasonably scoped. Perhaps the person asking needs to understand their problem a little better so they know who best to ask for a fix. Perhaps they need to understa...
I am new with unix and I am writing a shell script. When I run this line on the command prompt, it prints the total count of the number of processes which matches: ps -ef | awk '/siebsvc –s siebsrvr/ && !/awk/ { a++ } END { print a }' example, the output of the above line is 2 in the command...
I want to assign the result of an expression to a variable and concatenate it with a string, then echo it. Here's what I've got: #!/bin/bash cd ~/Desktop; thefile= ls -t -U | grep -m 1 "Screen Shot"; echo "Most recent screenshot is: "$thefile; But, that outputs: Screen Shot 2011-07-03 at 1.55...
You know when you do something like apt-cache search something | less? Well (in a Bash script) how do you get the input and set it to a variable (like less is doing, but less isn't a Bash script)?
last day (14 days later) »