I'm trying to make a simple search script but cannot get it right. The script should search for keywords inside files. Then return the file paths in a variable. (Each file path separated with \n).
#!/bin/bash
SEARCHQUERY="searchword1 searchword2 searchword3";
for WORD in $SEARCHQUERY
do
... (6 Replies)
Hello All,
I need a bash shell script to find out a day from the date.For example we give the date(20100227/YYYYMMDD) then we get the day 'Saturday'.
Thanks in advance,
Satheesh (5 Replies)
#!/bin/bash
timevar=`date +%F_”%H_%M”` #-- > Storing Date and Time in a Variable
get_contents=`cat urls.txt` #-- > Getting content of website from file. Note the file should not contain any http:// as its already been taken care of
######### Next Section Does all the processing #########
for i... (0 Replies)
#!/bin/bash
timevar=`date +%d-%m-%Y_%H.%M.%S` #-- > Storing Date and Time in a Variable
get_contents=`cat urls.txt` #-- > Getting content of website from file. Note the file should not contain any http:// as its already been taken care of
echo "Datae-time URL Status code Report" >... (2 Replies)
Hi together,
unfortunately I am not a shell script guru - the following might touch
the depths of awk, substr, split, regexps, where I am still fighting with - but as always the boss needs a fast solution :-(
So: I have the following USER/PASSWORD-installation-config-file, from where I want to... (10 Replies)
Hi, I'm trying to write a script to search through my computer and
find all .jpg files and put them all in a directory. So far I have
this:
for i in `find /home -name '*.jpg' ` ; do mv $i home/allen/Pictures/PicturesFound ; done
When I run it, I get this error (this is only part of it, it... (2 Replies)
As I stated in a previous thread - I'm a newbie to Unix/Linux and programming. I'm trying to learn the basics on my own using a couple books and the exercises provided inside.
I've reached an exercise that has me stumped. I need to write a bash script that will will read in a file and print the... (11 Replies)
hi all,
i have devised a script that starts in /restored/ and in there, there are a lot of sub folders called peoples names and in the sub folders are files/folders and it deletes the data in the sub folders BUT not the sub folder itself and it should then touch a file in all the sub folders... (3 Replies)
Hello -
I have a requirement to get the Memory(Xmx) and the activity name using it.
Sample input info :
1502 02:57 /bin/sh /opt/rather/bar/deploy/bar_run.sh
1545 02:57 java -Drather.repository=/opt/rather/bar/deploy/JobSyng_Barol_Count/JobSyng_Barol_Count/../lib -Xms1024M... (3 Replies)
Discussion started by: Varja
3 Replies
LEARN ABOUT DEBIAN
partclone.ntfs
partclone.extfs(8) System Manager's Manual partclone.extfs(8)NAME
partclone.extfs - The utility for clone and restore an etx2/ext3 partition.
SYNOPSIS
partclone.extfs [options]... [MODE] [SOURCE FILE] [OUTPUT FILE]
DESCRIPTION
partclone.extfs is a part of Partclone project for ext2/3 file system. Partclone is a project like the well-known backup utility "Parti-
tion Image" a.k.a partimage. Partclone provide utilities to back up used blocks and design for higher compatibility of the file system
using supported library like e2fslibs.
OPTIONS -o, --output FILE
Output FILE
-O --overwrite FILE
Output FILE, overwriting if exists
-s, --source FILE
Source FILE
-L, --logfile FILE
Log FILE
-c, --clone
Save to the special image format
-r, --restore
Restore from the special image format
-b, --dev-to-dev
Local device to device copy mode
-D, --domain
Create GNU Ddrescue domain log file from source device
--offset_domain=X
Add X (in bytes) to all positions reported in the domain log file
-R, --rescue
Continue after disk read errors
-dX, --debug=X
Set the debug level to X = [0|1|2]
-C, --no_check
Don't check device size and free space
-X, --dialog
Output message as Dialog Format
-I, --ignore_fschk
Ignore filesystem check
--ignore_crc
Ignore crc check error
-F, --force
Force progress
-f, --UI-fresh
Fresh times of progress
-q, --quiet
quiet mode, no progress update
-v, --version
Display partclone version
-h, --help
Display this help
Examples:
clone /dev/hda1 to hda1.img and display debug information.
partclone.extfs -c -d -s /dev/hda1 -o hda1.img
restore /dev/hda1 from hda1.img and display debug information.
partclone.extfs -r -d -s hda1.img -o /dev/hda1
restore image from clonezilla(split, gzip,) with stdin source
cat sda1.ext3-ptcl-img.gz.a* > gunzip -c | partclone.ext3 -d -r -s - -o /dev/sda1
REPORTING BUGS
Report bugs to <thomas@nchc.org.tw>
SUPPORT
You can get support at http://partclone.org
AUTHOR
This manual page was written by Thomas Tsai <thomas@nchc.org.tw>
partclone 0.2.48 Nov 2007 partclone.extfs(8)