Hi All,
I am using Sun 5.9.
I am putting the value "Feb 10" in variable 'c' here.
Code:
-bash-3.00$ c=`date | awk '{print $2 " " $3}'`
-bash-3.00$ echo $c
Feb 10
But when I am grep-ing value of 'c', I am getting this error.
Code:
-bash-3.00$ ls -lrth | grep $c
Hello All.
I got a simple question, but Google has not assisted me in this query.
I am using "if" to force a word under the condition that the first letter of that word must be a letter of the alphabet, regardless of capitalization, using the " "" = "" " syntax.
Like so:
Hi there,
Below is the shell script that I am writing to beep an alert but listen to nothing.
Code:
#!/bin/bash
echo Listen to the alert!
echo -e "\a"
echo listened ?
Kindly tell me where I am wrong.
Google turned up only one item about this, on a Cygwin mailing list, and there was no answer given in the follow-up posts.
If I launch an xterm, it pops up as it should. Now, at the command prompt there, if I hit ENTER, nothing happens. I have to hit ENTER a second time, to get the usual effect (a newline occurs).
Also, if I enter a command at the prompt, like:
Hi,
Below is the requirement. Please let me know if anyone can suggest a solution.
There is a host variable by name MOUNT1 which holds value /ora1
$ echo $MOUNT1
/ora1
I am runnin CentOS 5.4 on a machine wiht 2GB of ram. of that 2GB free -m shows that 1.8 is being used. I wanted to find out what was consumign the RAM. I came across .mozilla folder in every users home directory. I am thinkning, is this machine some kind of GUI that is consuming the ram?
I did ps aux | grep gnome and ps aux | grep kde but that came up with nothing.
I have a directory that contains some files (over a 1,000) that have a '\' in the filename. There are also some good files that I need to keep. therefore I need a script to delete based on inode.
What I have thus far:
list="$(ls -il /opt/PC/log/*RPOUT*.xml)" #this gives me the list
# I need to get the inode of.
i need to get the Serial Number of my motherboard . i used dmidecode to get the serial number. but obviously i needed only the serial number and not the whole details. so i used grep to get only serial number but the problem is i get 3 occurences of "serial number " and only one of the occurences actually has the serial number with it.
this is the code that i used
if I open a terminal and hit [TAB] [TAB] it will display "Display all 2583 possibilities? (y or n) ". If I press y is there a way to capture the output and write it to a file?