Code:
workdir=`pwd` echo $workdir # /path/to/my/split/directory/i/want/ temp=$(echo $workdir | sed "s/\/split\// /g") echo $temp # /path/to/my directory/i/want/ arr=( $temp ) echo ${arr[0]} # /path/to/my echo ${arr[1]} # directory/i/want/
workdir=`pwd` echo $workdir # /path/to/my/split/directory/i/want/ temp=$(echo $workdir | sed "s/\/split\// /g") echo $temp # /path/to/my directory/i/want/ arr=( $temp ) echo ${arr[0]} # /path/to/my echo ${arr[1]} # directory/i/want/
workdir=`pwd` echo $workdir # /path/to/my/split/directory/i/want/ arr=$(echo $workdir | tr "/split/" "\n") echo $arr[0] # /path/to/my echo $arr[1] # directory/i/want/
import logging import sys from scapy.all import * conf.iface='eth1'
$exitfile = '/path/to/the_exit_file'; my $pointerPos = 0; while (!(-e $exitfile)) { print "and we read?\n"; open(DAT, "/path/to/mylog.log") || die("Could not open file!"); seek DAT, $pointerPos, 0; foreach $line (<DAT>) { print $line;
public class Tree{ private int init; private ArrayList<Object[]> boom;
Leave a comment: