Search Results

Search: Posts Made By: Roggy
1,529
Posted By sea
Well if you want to ping ip 217, then you'll pass...
Well if you want to ping ip 217, then you'll pass 217.. or 1-222, it'll be among it.

EDIT:
Saying/Asking: I'm not getting why there should be a need to increment passed numbers by (say) 200 with...
1,529
Posted By sea
I'd change to: IP_PRE=192.168.1 [ -z "$1" ]...
I'd change to:
IP_PRE=192.168.1
[ -z "$1" ] && echo "Usage: ${0##*/} 15 30-37 42 .."

for num in "${@}";do
# Parse all the arguments
if [ "-" = "$(echo $num|tr -d [[:digit:]])" ]
then # Its...
12,700
Posted By Akshay Hegde
See here we read input file while IFS=,...
See here we read input file

while IFS=, read username password; do
..
..
done <"$@"
12,700
Posted By Akshay Hegde
You have to read file line by line and then...
You have to read file line by line and then create user

root@nio:/tmp# cat file
bart_simpson,andHisPassword
maggy_simpson,andHisPassword

root@nio:/tmp# cat adduser.sh
#!/bin/bash

if [ $#...
3,043
Posted By junior-helper
Here is a small demo which requires a directory...
Here is a small demo which requires a directory name as parameter. It even accepts directory names containing whitespaces. The directory with whitespace needs to be quoted. Using your own commands, I...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 01:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy