9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
This is a script which to create an opvn user, I want which answer automatically to a certain part so, I try this, it works without the red part but I must type manually.. :
#!/bin/bash
## Environnement ##
LC_ALL=C
## Paths ##
rsa_dir="etc/openvpn/easy-rsa"... (10 Replies)
Discussion started by: Arnaudh78
10 Replies
2. Shell Programming and Scripting
Hi all,
I am reading from the file having entries like below
111.ABC.POT
6477.YHT.OIT
Now I need to read each line and cut each line seperated by dot and print into the file .
I tried below and it is not working . Please help
while read READLINE
do
eval... (4 Replies)
Discussion started by: Hypesslearner
4 Replies
3. Shell Programming and Scripting
I'm using the below to get multiple input from USER and it is working, is there any better way in awk array single liner?
echo "Enter Multiple input (Ctrl+d to exit)"
>output
while read A
do
echo "$A" >>output
done (3 Replies)
Discussion started by: Roozo
3 Replies
4. Shell Programming and Scripting
I have a script that is working when I input parameters from the command line. I was under the assumption that i could use a redirect for the input.
script fred.sh:
value1=$1
value2=$2
print $value1 $value2
Running from command line:
fred.sh 1 2 1 2
Contents of file fred.txt:... (3 Replies)
Discussion started by: djm2112
3 Replies
5. Shell Programming and Scripting
I have a script built that takes the standard inputs $1 $2 $3 after the name and parses some data.
hexsite=`echo "obase=16;$1"|bc`
hexfix=$(printf "%.3X" 0x$hexsite)
if || ;then
type=33
elif || ;then
type=59
elif ;then
type=99
else type=00
fi
cat /directory/*.2012$3*|
I am... (8 Replies)
Discussion started by: PCGameGuy
8 Replies
6. Shell Programming and Scripting
Hi Gurus,
I need a suggestion, please help. I have a input file as below :
abc.txt :
*
xxxx: 00000
xxxxx: 00000
xxxx: RANDOM
xxx: RANDOM
**************************xxxxxxx***
* abc
******************************
abc:
abc: ... (3 Replies)
Discussion started by: arunshankar.c
3 Replies
7. Shell Programming and Scripting
Can we input two variable on single line that separate by space example user input "list jpg" it will list all jpg files in current directory (3 Replies)
Discussion started by: guidely
3 Replies
8. Shell Programming and Scripting
I want to instert Category:XXXXX into the 2. line
something like this should work, but I have somewhere the wrong sytanx. something with the linebreak goes wrong:
sed "2i\\${n}Category:$cat\n"
Sample:
Titel Blahh Blahh abllk sdhsd sjdhf
Blahh Blah Blahh
Blahh
Should look like... (2 Replies)
Discussion started by: lowmaster
2 Replies
9. Programming
Hi
I need to list files by their size and exclude those that match a certain size. With grep it is easy enough.
ll -rt | grep 2166 | awk '{print $9}'
2166 is the filesize and $9 the filenamefield.
What should I be looking for to use this in a C program? My aim is to cut the name... (2 Replies)
Discussion started by: vannie
2 Replies