Hi Guru's,
I need to create 3 files with the contents "ABC" using single command.
Iam using:
echo "ABC" > file1.txt file2.txt file3.txt
the above command is not working. pls help me...
With Regards / Ganapati (4 Replies)
Hello,
I would like to parse all the shell variables and get the name and the value for each variable. Set command get the list of variables but I don't know if there is a command such getopts to get each of them.
regards,
Teo (7 Replies)
system() call imeplemented in solaris is such a way that:
Command not found - return code 1
Command executed successfully without Output - return code 1
how to distinguish between these two based on return code in a c - file?
Can you help on this ? (5 Replies)
hi there !
i have exactly the same problem like this guy here
https://www.unix.com/shell-programming-scripting/127668-getting-curl-output-verbose-file.html
i am not able to save the curl verbose output..
the sollution in this thread (redirecting stderr to a file) does not work for me.... (0 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
Hi all.
I have a .txt file that I need to sort it
My file is like:
1- 88 chain0 MASTER (FF-TE) FFFF 1962510 /TCK T FD2TQHVTT1 /jtagc/jtag_instreg/updateinstr_reg_1 dff1 (TI,SO)
2- ... (10 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Hello everyone,
Since my python knowledge is limimted, I've challenged myself to learn as much as possible to help me with my carrere. I'm currently trying to convert a shell script to python, just to give myself a task. There is one section of the script that I'm having issues converting and... (2 Replies)
Discussion started by: da1
2 Replies
LEARN ABOUT DEBIAN
fgadm
FGADM(8) System Manager's Manual FGADM(8)NAME
fgadm - filtergen command program
SYNOPSIS
fgadm [ check | reload | save | stop ]
DESCRIPTION
fgadm is a simple command interface for managing filtergen(8) based packet filters.
USAGE
fgadm can be used to stop existing filters (thus turning them off), reload new packet filters, save currently running filters for
longevity, and to check filter scripts for errors before reloading.
The following commands are accepted by fgadm:
check Check the filter script /etc/filtergen/rules.filter for errors. The generated filter will be printed on standard output, and errors
printed to standard error.
reload Replace the current live packet filter with the one in /etc/filtergen/rules.filter. The script will be tested for errors before
reloading.
save The current live packet filter will be saved in a distribution-friendly way. On Red Hat systems, this will save the iptables or
ipchains firewall that is currently loaded into the kernel to load at boot with the iptables or ipchains initscript.
stop This command will flush the current live packet filter out and put it in a default accept mode, thus no firewalling will be in
place. This is useful to abort firewalls in an emergency.
EXAMPLES
One may find the following sequence of commands useful for making firewall changes on live servers:
# at now + 2 min
warning: commands will be executed using (in order) a) $SHELL b) login shell c) /bin/sh
at> fgadm stop
at> ^D<EOT>
job 53 at 2004-06-07 17:25
# fgadm check
# fgadm reload
# atq
53
# atrm 53
# fgadm save
FILES
/etc/filtergen/rules.filter
Packet filter descriptions are read from this file when fgadm is used.
/etc/filtergen/fgadm.conf
This file alters the behaviour of filtergen as called from fgadm.
BUGS
fgadm save does not work on Debian systems with iptables due to a lack of common sense in the iptables package.
SEE ALSO filtergen(8), filter_syntax(5), filter_backends(5)AUTHOR
fgadm was written by Jamie Wilkinson <jaq@spacepants.org> for the filtergen package, to ease maintenance of filtergen-based firewalls.
June 7, 2004 FGADM(8)