Search Results

Search: Posts Made By: wolf@=NK
5,572
Posted By wolf@=NK
try using the cp -p (preserve's original...
try using the cp -p (preserve's original timestamp, date and such)
4,205
Posted By wolf@=NK
pretty much I did the indentation and close the...
pretty much I did the indentation and close the while-loops using the "\" forward slash However, I still get the same error?


[localuser@localhost ~]$ ./wk7.sh
./wk7.sh: line 37: syntax error...
4,205
Posted By wolf@=NK
Cannot execute/finish script because of last line syntax error: unexpected end of file/token `done'
first of all I thought the argument DONE is necessary for all scripts that have or begin with do statements which I have on my script, However, I still don't completely understand why I am receiving...
3,740
Posted By wolf@=NK
modify ls -l (long listing format output) strictly using SED only straightforward goalhard 4 me doh
Below is a sample out of ls -l which I would like to rearrange or modify by field numbers for example I successfully managed to disect using simple paragraph however for ls -l I can't divide the rows...
1,480
Posted By wolf@=NK
duplicates is ok as long as I can produce those...
duplicates is ok as long as I can produce those files

disregard echo line

I think it should be touch $owner$modifieddate$file_extension$truncatedfilename
1,480
Posted By wolf@=NK
Been working since 25+ hrs: Bash Script to rename files supposedly direct but difficult to execute
:wall::wall::wall:

Hi I have horrible script below, need help in renaming ls -l output into new filename format:

Desired output:

cp -pv original_path/.*...
3,612
Posted By wolf@=NK
I don't see them in ^M (Control M) in vi when I...
I don't see them in ^M (Control M) in vi when I vi filter.txt?

How to remove them? I only see them when I cat -v filter.txt
3,612
Posted By wolf@=NK
[localuser@localhost ~]$ cat -v filter.txt ...
[localuser@localhost ~]$ cat -v filter.txt
request-key.conf^M
devscripts.conf^M
kernel-img.conf^M
nsswitch.conf^M
ca-certificates.conf^M
ntp.conf^M
updatedb.conf^M
libao.conf^M...
3,612
Posted By wolf@=NK
Oh yeah the output result should match all those...
Oh yeah the output result should match all those listed in the filter.txt in the ls -l directory output

for example if I specifically grep a manual string from filter.txt it would display:

...
3,612
Posted By wolf@=NK
ls -l directory/.
this is the output of the ls -l directory/.

[localuser@localhost ~]$ ls wiz/.
a2ps.cfg.defs environment.defs ld.so.cache.defs mtools.conf rpc.defs
a2ps-site.cfg.defs ffserver.conf ld.so.conf...
3,612
Posted By wolf@=NK
filter.txt are filenames
>cat filter.txt
request-key.conf
devscripts.conf
kernel-img.conf
nsswitch.conf
ca-certificates.conf
ntp.conf
updatedb.conf
libao.conf
deluser.conf
uniconf.conf
sysctl.conf
mtools.conf...
3,612
Posted By wolf@=NK
[localuser@localhost ~]$ cat alice.filenames ...
[localuser@localhost ~]$ cat alice.filenames
request-key.conf
devscripts.conf
kernel-img.conf
nsswitch.conf
ca-certificates.conf
ntp.conf
updatedb.conf
libao.conf
deluser.conf
uniconf.conf...
3,612
Posted By wolf@=NK
ls -l /directory/path | grep -f filter.txt NOT WORKING
Hi,

I have been searching all over and cannot find a script or command that simply search or match the filenames listed in a file and match it from a directory.

so far,

example:

cat...
1,404
Posted By wolf@=NK
thanks
It doesn't have to be while?? I was thinking before that I might have to make looping contruct with something like >i++ and i=1 or something but I don't know how to apply it to these...

I will...
1,404
Posted By wolf@=NK
Please help on how to create files from contents of a text file??? whats the best approach
Hi so far I created this script:

vi loop.beta.sh

for i in `cat extract.filenames.tabc`
do
echo $i
done>$i

===
This is the original text file.
[localuser@localhost ~]$ more...
Showing results 1 to 15 of 15

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