This should work, though the processing would happen before displaying the output:
Or this would keep things in order:
Or, if the processing produces no output, you might do this:
When ever i run this if statement with the -n OR -z switches it always returns says positive and does "HAVE STUFF". BUT the file does not contain the word optimus in any form.
$echo this is mojo > test.file
$if ; then
>echo HAVE STUFF
>else^Jecho NO STUFF
>fi
HAVE STUFF
$if ; then... (1 Reply)
My System is FC3, The following Players don't run well:
1).Helix Player couldn't play MP3 and *.wma files,
2).Totem is the same,
3)XMMS couldn't play .wma files.
I am a newer of Linux,but I like Linux,just as you.
Could you help me?
Thank you! (1 Reply)
Hi friends,
I have a script that sets the env variable path based on different conditions.
Now the new path variable setting should not done in the same terminal or same shell.
Only a new terminal or new shell should have the new path env variable set.
I am able to do this only as follows:
>cd... (1 Reply)
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
The java program is a part of speech tagger -> The Stanford NLP (Natural Language Processing) Group
The goal is to use this script as part of a webpage to tag parts of speech based on a user-inputted string.
I have no idea what to do with the files - I'm a complete *nix noob. I tried running... (4 Replies)
I have 2 shell scripts the primary one would load the other one which will have functions defined in it.
Script 1:
. /apps/bin/Script 2
function
if
then
continue...
....
fi
Script 2:
function() (10 Replies)
Hi All,
I am trying to run a script which will search for 2 strings(stopped,started) in a text file and echo an output depending on below condition
-bash-3.2$ cat trial1.txt
v
ggg
f
-bash-3.2$ cat trial1.sh
VAR9=` grep 'stopped' /tmp/trial1.txt`
VAR10=` grep 'started'... (4 Replies)
Hi,
I have a shell script (script.sh) in which we are calling java code which asks for
Username:
Password:
for authentication purpose
currently we are passing the credential manually and run the script.
but I am trying
echo -e "user_id\npassword" | script.sh
but its not... (1 Reply)
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Discussion started by: weesiong
3 Replies
LEARN ABOUT CENTOS
grub2-fstest
GRUB-FSTEST(3) Library Functions Manual GRUB-FSTEST(3)NAME
grub-fstest -- Debug tool for GRUB's filesystem driver.
SYNOPSIS
grub-fstest [-c | --diskcount=NUM] [-C | --crypto]
[-d | --debug=STRING] [-K | --zfs-key=FILE|prompt]
[-n | --length=NUM] [-r | --root=DEVICE_NAME]
[-s | --skip=NUM] [-u | --uncompress] [-v | --verbose]
IMAGE_PATH <blocklist FILE | cat FILE |
cmp FILE LOCAL | cp FILE LOCAL | crc FILE |
hex FILE | ls PATH | xnu_uuid DEVICE>
DESCRIPTION
grub-fstest is a tool for testing GRUB's filesystem drivers. You should not normally need to run this program.
OPTIONS --diskcount=NUM
Specify the number of input files.
--crypto
Mount cryptographic devices.
--debug=STRING
Set debug environment variable.
--zfs-key=FILE|prompt
Load ZFS cryptographic key.
--length=NUM
Handle NUM bytes in output file.
--root=DEVICE_NAME
Set root device.
--skip=NUM
Skip NUM bytes from output file.
--uncompress
Uncompress data.
--verbose
Print verbose messages.
COMMANDS
blocklist FILE
Display block list of FILE.
cat FILE
Display FILE on standard output.
cmp FILE LOCAL
Compare FILE with local file LOCAL.
cp FILE LOCAL
Copy FILE to local file LOCAL.
crc FILE
Display the CRC-32 checksum of FILE.
hex FILE
Display contents of FILE in hexidecimal.
ls PATH
List files at PATH.
xnu_uuid DEVICE
Display the XNU UUID of DEVICE.
SEE ALSO
info grub
Wed Feb 26 2014 GRUB-FSTEST(3)