Tagged Questions
3
votes
1answer
70 views
Where to put scripts only to be called by another script?
I've written a basic command line application composed of multiple bash scripts. One of these is intended to be run by any user of the computer, so I understand the correct location for this would be ...
1
vote
1answer
229 views
Identify text/ascii files in Linux/Solaris
I have a little project to build bash script that search in the OS ( Linux/Solaris ) the current IP address from files and replace them with other IP address.
The problem is that IP address could be ...
7
votes
1answer
2k views
How to determine the filesystem of an unmounted device? [duplicate]
Possible Duplicate:
Find filesystem of a partition from a script
How to show the filesystem type via the terminal?
I'm looking for a command that yields the filesystem type as mount would ...
0
votes
1answer
86 views
Filesystem writes seemingly lost
I've been experimenting with tcpdump, and I've found some very bizarre filesystem behavior. It doesn't look to be a tcpdump problem as I'll explain in a second.
The following command produces no ...
6
votes
3answers
322 views
Bash autocomplete gives different file name than ls
An incredibly strange thing just happened. Through a serious typo, I entered
cp filename.xsl .^?~
Yeah, that's right, dot-caret-questionmark-tilde! Truth is stranger than fiction.
It gets weirder. ...
0
votes
2answers
922 views
How can I rename all files in the current directory having a particular extension to another extension? [duplicate]
Possible Duplicate:
Renaming multiple files (changing extension)
Suppose that in my current/working directory I have five files:
file1.xvg
file2.xvg
file3.xvg
file1.eps
file2.eps
Is ...
2
votes
3answers
2k views
How can I delete all files with a particular extension in a particular folder?
If I set the current/working directory (navigating to it using cd) to some particular directory and then type:
rm *.xvg
What will this command do? Is it true that the above command will only delete ...
0
votes
1answer
111 views
Moving Data From Old System to New System via NFS Mount
My old system was running RHEL 5,(systemold.blah.blah), and I wanted to update the server with as little downtime as possible, so I built out a new system (systemnew.blah.blah) and put RHEL 6 on it.
...
0
votes
2answers
1k views
How to write a file at various offsets to a filesystem partition with dd command
Requirement
I want to write a file at various offsets into the partition
Partition /dev/part2 is mounted at /mypart
I tried the command below:
dd if=/dev/urandom of=/mypart/aaa bs=1024 seek=0 ...
2
votes
1answer
221 views
Simultaneously move long list files to new location
I'm using a wonderful program called ExifTool to recursively rename a large batch of files.
Here is example usage:
$ exiftool -r -ext JPG '-FileName<CreateDate' -d %Y%m%d_%H%M%S.jpg .
Error: ...
1
vote
0answers
90 views
“cd //” and “cd /” what is the difference? [duplicate]
Possible Duplicate:
unix, difference between path starting with '/' and '//'
If I make a cd // followed by a pwd I see:
# cd //
# pwd
//
why is that? what's the differece ...
10
votes
2answers
2k views
Why is deleting files by name painfully slow and also exceptionally fast?
Faux pas: The "fast" method I mention below, is not 60 times faster than the slow one. It is 30 times faster. I'll blame the mistake on the hour (3AM is not my best time of day for clear thinking :).. ...
3
votes
3answers
2k views
Is it possible in bash, to start reading a file from an arbitary byte count offset?
I want to locate a date which is somewhere in an 8 GB log (text).
Can I somewhat bypass a full sequential read, and first do binary splits of the file (size), or somehow navigating the filesystem ...