Hi.
I'm trying to get the names of files from a log file, without the path and special characters.
I have a file that contains lines like this:
Code:
'/path/to/files/file00010000070874.EXT'
'/path/to/files/file00010000070875.EXT'
'/path/to/files/file00010000070876.EXT'
'/path/to/files/file00010000070877.EXT'
'/path/to/files/file00010000070878.EXT'
'/path/to/files/file00010000070879.EXT'
'/p
As far as I understand, the usual way to add a path to the PATH environment variable is by concatenating paths separated by the : character.
Like every other person I am from time to time compelled to list the directory structure from a certain point int the filesystem.
Hi
I have been able generate a file ($ELOG) that can have multiple lines within it. The first column represents the full path source file and the other is the full path target ... the file names are the same but the target directory paths are slightly different.
Inspired by the accepted answer to this thread, I am trying to replicate a similar construction in tcsh (version 6.14.00) with no luck:
setenv new_PATH (
/some/path
/some/other/path
# Some comments
/foo/path
# Another group
/bar/path
$PATH) # Attach $PATH at the end in case we had previous declarations
setenv PATH `sed -e '/^#/'d -e '/^$/'d << EOF | paste -d ":" -s $new_PATH`
I get th
I am frequently updating files from a development enviroment to a production one in diferent servers so the paths are the same in both hosts and it becomes kind of a repetitive procedure to update a file and indicate the same path for the scp parameters.
Is there a way to use brace expansion or other technique with scp parameters?
would like to write a bash program which if I type in the following:
-bash-4.1$ ./sample.sh path regex keyword
that will result something like that:
path/sample.txt:12
path/sample.txt:34
path/dir/sample1.txt:56
path/dir/sample2.txt:78
I have absolutely no idea how can I achieve this without using find or grep -r (but I can use grep/ sed/ awk) in bash...
Hello, I really don't know if this is possible, but I figured the wonderful users of unix.com may be able to provide me with some help/suggestions.
I want to create a (bash) script that would go will accept an input file. That input file contains important information as well as pathnames.
Hi folks, am trying to figure out a way to make my own cd script.. i thought that prompting the user to type in her destination then saving that input to PATH system variable will get it done!