Tagged Questions
1
vote
1answer
45 views
What is the best directory for script files?
I have my own shell script files and I want to run them in terminal, keeping them in /usr/bin folder. But my question is: which directory is best for keeping files of my own script? I want to use this ...
6
votes
3answers
174 views
Replacing dots (.) in sed
I have a string of text:
" . . ."
that is
space dot space dot space dot
I am trying to replace all occurence of this string in text file to
"..."
that is
dot dot dot
I was trying to ...
0
votes
0answers
38 views
Moving bytes from one files to another
I have an empty file (only zeroes are in it) of size 9,0KB and I need to write another file (with size 1,1KB) to it, but the first file must not lose it's. So if the whole file is 00000000000000... ...
-1
votes
3answers
64 views
Bash scripting issue for a bifurcation diagram data generation
I'm brand new to this forum (doesn't mean I didn't used it before) but today I've a very important question with wich I found no help on the web. I've a Bash script that doesn't work and I don't know ...
4
votes
2answers
184 views
“No such file” when running a 32-bit program on a 64-bit system
I downloaded a Chromium snapshot and unzipped it, like this:
michael@ubuntu:/opt/chrome-linux$ ls
chrome libffmpegsumo.so nacl_irt_x86_32.nexe
chrome.1 ...
0
votes
1answer
115 views
How to check for missing files in filesystem or directory with bash (after crash)?
After the system unmounted the root partition, I detected that some files are missing in the filesystem.
wifi and the gwibber icons disappeared from the indicator applet
I am trying to check if ...
3
votes
3answers
93 views
How to move only a specific amount of images from a folder
I have a folder that has 200.000 images. I want to do the following:
Move an X amount of images (50 images, 100 images, 200 images) from that folder to Y folder.
Each Y folder can be a number ...
5
votes
2answers
173 views
What is this file: /usr/bin/[?
The name of the file is '[' . When I open it up in vi it looks like it's a copy of 'test'. It's owned by root.
3
votes
1answer
152 views
How do I set ubuntu to compress a series of folders , deleting the original after its been compressed?
I need to setup some kind of script to go through a set of folders, compressing each one, and only leaving the compressed copy of each. How can I do that?
0
votes
1answer
178 views
BASH Downloading File
Now all I have problems with is the yes no statements. They aren't allowing input but look setup like the rest of them...
mc_addplugin() {
if pgrep -u $USERNAME -f $SERVICE > /dev/null
...
2
votes
1answer
260 views
delete files with particular character length and a extension in a directory using some command in terminal window
I would like to know what command must be executed in the terminal window which will enable us to delete files with a particular extension(say .c) in a particular directory whose name length is 6 ...
2
votes
2answers
454 views
copy only certain bytes of file?
How can I copy a file, starting at $N bytes and onward?
I can use curl's -r option like this: $ curl -r 41663- http://server.com/file.ext to download from byte 41663 and onward, but how can I do this ...
2
votes
5answers
1k views
Need some help creating a script to rename text files and move them to a directory
I have recently managed to convince my mother to let me switch her PC to Ubuntu, and to make her transition easier I want to automate as many tasks as possible for her. I managed to do quite a bit, ...
1
vote
1answer
384 views
.bash_history and .cache
I have a user who's home directory is a Mercurial repository.
Mercurial notified me that there were 2 new unversioned files in my repository. .bash_history and .cache/motd.legal-displayed.
I assume ...
2
votes
4answers
2k views
Concatenating several .mp3 files into one .mp3
As it was suggested here I am using cat command to concatenate several .mp3 files into one .mp3 file.
Imagine, I have following .mp3 files in the current folder:
001001.mp3 001002.mp3 001003.mp3 ...
10
votes
5answers
5k views
How to list all the files in a tree (a directory and its subdirs)?
For a task of mine I need to list all the files in a tree (a directory, all its subdirs, all subdirs of those, etc.).
I'd prefer to see them in Nautilus or Krusader, but a command-line solution is ...
6
votes
2answers
2k views
Split a large file into smaller files and then integrate them to get the original file
How do I split a 7GB (movie) file into smaller files of (say) 1GB, and then (in another Ubuntu computer) integrate them to get the original file (using just bash commands)?