Search Results

Search: Posts Made By: netfreighter
Forum: Linux 05-04-2011
2,276
Posted By netfreighter
nix User Access Restrictions to Network, USB ports, PCMCIA, CDROM
How to create a user account on a Linux desktop machine with restrictions on connecting to the LAN, WAN, PCMCIA ports, Firewire, CDROM and generally any user controllable output options?

I have...
16,849
Posted By netfreighter
works like a charm! very subtle! it replaces...
works like a charm!

very subtle! it replaces the dashes with underscore and renames the files with the number supplied in the right column.
many, many thanks!!!

may I ask you what the "system"...
16,849
Posted By netfreighter
Anyway if your file looks like that second...
Anyway if your file looks like that second example, then this should work: awk '{f=$1;sub("-.*\\.","."$2".",$1);system("mv "f" "$1)}' file-with-filenames[/QUOTE]

1/ thanks!

2/ yes, the file...
16,849
Posted By netfreighter
File renaming from list of names contained in another file
I have to rename a large number of files so that the name of each file corresponds to a code number that is given side by side in a list (textfile).
The list contains in column A the filename of the...
12,180
Posted By netfreighter
I also tried awk ' /[[:digit:]]/ { print $1...
I also tried

awk ' /[[:digit:]]/ { print $1 } ' repfile

but $1 or $2 only map to "words", whichmeans those digit squences that have some separator or blank, therefore only some or the desired...
12,180
Posted By netfreighter
SED command or REGEX to extract only the number from a textfile
Hello and thank you both for the answers.
I apologise for the delay in my answer but been overwhelmed with tasks lately. It is now time to turn to this project and finish off.

I have tried both...
12,180
Posted By netfreighter
Ken, many thanks for that. I did try the...
Ken, many thanks for that.

I did try the command, and it removes most characters trailing AFTER the number, except "_" underscore; however the characters BEFORE the digit pattern are still there,...
12,180
Posted By netfreighter
Isolate and Extract a Pattern Substring (Digits Only)
Hi guys,

I have a text file report generated from egrepping multiple files.
The text files themselves are obtianed after many succesive refinements, so they contain already the desired number,...
Showing results 1 to 8 of 8

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