10 More Discussions You Might Find Interesting
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. Shell Programming and Scripting
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
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: asjaiswal
4. Shell Programming and Scripting
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)
Discussion started by: Behrouzx77
5. Shell Programming and Scripting
Following recommendations for one of my threads, this is working perfectly :
CNT=$( grep -c -e "some text 1" -e "some text 2" -e "some text 3" "/tmp/log_file.txt" )
Now I need a grep success for some thing like :
CNT=$( grep -c -e "some text_1... (4 Replies)
Discussion started by: jcdole
6. Shell Programming and Scripting
how to use "cut" or "awk" or "sed" to get the following result:
xyz (8 Replies)
Discussion started by: timmywong
7. Shell Programming and Scripting
Pretty green to perl programming; been searching high and low for a perl (preferably) or unix script that will compare 2 CSV strings in the same file that are separated buy the "|" character (so basically they're side by side) and give the results of ONLY the exact change; note that 19... (3 Replies)
Discussion started by: gvolpini
8. Shell Programming and Scripting
I have a file that contains the 2 following lines (from /proc/mounts)
/dev/sdc1 /mnt/backup2 xfs rw,relatime,attr2,noquota 0 0
/dev/sdb1 /mnt/backup xfs rw,relatime,attr2,noquota 0 0
I need to match the string in the second column exactly so that only one result is returned, e.g.
> grep... (2 Replies)
Discussion started by: jelloir
9. Shell Programming and Scripting
I have line in input file as below:
My expected output for line in the file must be :
Can someone... (7 Replies)
Discussion started by: shis100
10. UNIX for Dummies Questions & Answers
I need to create 3 files with the contents "ABC" using single command.
echo "ABC" > file1.txt file2.txt file3.txt
the above command is not working. pls help me...
With Regards / Ganapati (4 Replies)
Discussion started by: ganapati
c-icap-mkbdb(8) System Manager's Manual c-icap-mkbdb(8)
c-icap-mkbdb - simple ICAP clientutility to create Berkeley DB lookup tables
c-icap-mkbdb [ -d debug_level ] [ -i file.txt ] [ -o file.db ] [ -t string|int|ip ] [ -v string|int|ip ] [ --dump ]
c-icap-mkbdb utility can be used to create Berkeley DB databases which can be used as lookup tables by the c-icap server.
The debug level
The file contains the data (required). The line format of this file must be:
key: value1, value2, ....
The database to be created
The type of the key. Select string for string keys, int for integer keys or ip for using IP addresses as keys. The "string" is the
The type of the values. The "string" is the default.
--dump Do not update the database just dump it to the screen.
c-icap-mkbdb -o keys -i keys.txt
It builds the keys Berkeley DB database, using string type for keys and values.
c-icap-mkbdb -o keys --dump
Dump the contents of the keys database
c-icap(8) c-icap-client(8) c-icap-stretch(8) c-icap-config(8) c-icap-libicapapi-config(8)
c_icap 0.1.6 c-icap-mkbdb(8)