Hello everyone,
I am struggling a bit with a batch script that I need to run in cygwin. I work in winXP and I had to write some awk scripts to do some file manipulation, and now I would like to automate the process by just running a batch file so that my colleagues can use it easily.
Now, the... (2 Replies)
Hi all. I am using procmail to deliver an email to a script I am developing. Procmail delivers the email to the script on standard input. I imagine this is the same as piping input from a command into the script. Hence I've been testing my script by running
echo 'test' | sms-autosend-backup.sh
... (2 Replies)
Hi,
I have tried several times but failed, I need to call this script from the perl script. This one line script will be sent to /var/tmp/error
Bash command:
/usr/openv/netbackup/bin/admincmd/bperror -backstat -l -hoursago 12 |awk '{ print $19, $12, $14, $16}'|grep -vi default|sort >... (12 Replies)
In a bash script, one can call a perl command in the following manner, where "myperlcommand" is a perl command.
perl -e 'myperlcommand(arguments)'
perl -e 'print("UUUU"x4)'
Now, how can one call a bash command from within a perl script? (Suppose that mybashcommand is a bash... (1 Reply)
Hi,
Will following set up work in bash script? I've got errors if assigning following binary command to a variable. But on the other hand, COMMAND="ls" works. Any explanation please? How can I assign binary command to a variable COMMAND then I can just call ${COMMAND}?
COMMAND="rsync"... (3 Replies)
Hello,
i have bash script where im cycling some command for different lines in external file.
example:
while read domain;do
nslookupout=$(nslookup -type=ns $domain) || true
another commands
done < filenamewithdomains
i added:
|| true
after the command in belief it will just skip... (6 Replies)
Hello im new here... Im trying to read file and create folders from words in it but i get this for loop error
awk : line 3 : syntax error at or near for
my code is..
#!/bin/bash
begin
for (( i=1;i<=5;i++));
do
awk -v i=$i $0 { print $i }
mkdir $i
done
{print $i}
end {}
i have... (7 Replies)
I need to be able to use a sed command as a variable in a bash script. I have the sed command that almost works the way I want it. the command is
sed -n '/inet/,/}/p' config.boot
This gets me this result:
inet 192.168.1.245
}
I need to get the IP address into a variable so I... (9 Replies)
Hello.
I'm new to bash script and I'm learning the basics by writing some scripts.
Recently a friend of mine asked me if I could try to write a script to him to automate a couple of processes that uses JSON RPCs.
I'll try to explain in few words the workflow just to contextualize the problem.... (48 Replies)
The below command works in the terminal interactively but not as part of a bash script. I though maybe I needed to escape the "$dir" so it isn't interpreted literally, but that's not it. Thank you :).
interactively in terminal
dir=/path/to
new=$(ls "$dir"/*.csv -tr | tail -n 1) && echo... (6 Replies)
Discussion started by: cmccabe
6 Replies
LEARN ABOUT CENTOS
unsquashfs
UNSQUASHFS(1) uncompress squashfs filesystems UNSQUASHFS(1)NAME
mksquashfs - tool to uncompress squashfs filesystems
SYNOPSIS
unsquashfs [OPTIONS] FILESYSTEM [directories or files to extract]
DESCRIPTION
Squashfs is a highly compressed read-only filesystem for Linux. It uses zlib compression to compress both files, inodes and directories.
Inodes in the system are very small and all blocks are packed to minimize data overhead. Block sizes greater than 4K are supported up to a
maximum of 64K.
Squashfs is intended for general read-only filesystem use, for archival use (i.e. in cases where a .tar.gz file may be used), and in con-
strained block device/memory systems (e.g. embedded systems) where low overhead is needed.
OPTIONS -v, -version
print version, licence and copyright information.
-d PATHNAME, -dest PATHNAME
unsquash to PATHNAME, default "squashfs-root".
-n, -no-progress
don't display the progress bar.
-no, -no-xattrs
don't extract xattrs in file system.
-x, -xattrs
extract xattrs in file system (default).
-p NUMBER, -processors NUMBER
use NUMBER processors. By default will use number of processors available.
-i, -info
print files as they are unsquashed.
-li, -linfo
print files as they are unsquashed with file attributes (like ls -l output).
-l, -ls
list filesystem, but don't unsquash.
-ll, -lls
list filesystem with file attributes (like ls -l output), but don't unsquash.
-f, -force
if file already exists then overwrite.
-s, -stat
display filesystem superblock information.
-e EXTRACT_FILE, -ef EXTRACT_FILE
list of directories or files to extract. One per line.
-da SIZE, -data-queue SIZE
Set data queue to SIZE Mbytes. Default 256 Mbytes.
-fr SIZE, -frag-queue SIZE
Set fragment queue to SIZE Mbytes. Default 256 Mbytes.
-r, -regex
treat extract names as POSIX regular expressions rather than use the default shell wildcard expansion (globbing).
Decompressors available
gzip
lzo
xz
SEE ALSO mksquashfs(1)HOMEPAGE
More information about unsquashfs and the squashfs filesystem can be found at <http://squashfs.sourceforge.net/>.
AUTHOR
squashfs was written by Phillip Lougher <plougher@users.sourceforge.net>.
This manual page was written by Daniel Baumann <daniel.baumann@progress-technologies.net>.
4.2 2012-06-30 UNSQUASHFS(1)