The file would never be in the same directory, that wouldn't make any sense.
Example:
I want to copy the file /mnt/g/blender/projects/raider_ship_3000_frame_test_run.blend
And I want to copy the file to my current directory /mnt/backup
I just don't want type the file file name.
1) it's boring.
2) Introducing typos is easy.
And I'm working with a lot of files.
the cp command 'assumes' the current directory to be the destination directory if not specified, I'm just asking if the file name can be assumed to be the same if not specified.
If all your files are in /mnt/g/blender/projects you could try one of
If they are in multiple different directories it's a little more difficult.
If all your files are in different directories, all under, say /mnt/g/blender, and I assume you are using bash as your shell, you could try this: globstar is a bash shell option that expands **/ into all subdirectories.
Hi all,,i have problem with my homework form my lecture..
He is give me a homework to create:
ifconfig eth0 0.255.255.255 1.1.168.192
my lecture says, i can making the shell scripting to finish my homework..
i have question, can setting ifconfig like in the upper? (1 Reply)
Hi All
I have files contains rows which look like this:
2 20090721_16:58:47.173 JSUD2 JD1M1 20 IAM 966591835270 249918113182 b 3610 ACM b 3614 ACM b 3713 CPG b 3717 CPG f 5799 REL b 5815 RLC b 5817 RLC :COMMA: NCI=00,FCI=6101,CPC=0A,TMR=00,OFI=00,USI: :COMMB: BCI=1234: :RELCAUSE:10:
... (1 Reply)
Hi Experts,
I know my question would be strange but i need to understand how the .bash_history file is logging user actions (the mechanism) and if possible modify it to include also the date/time of every action done by the user.
Sample file:
# more .bash_history
ssh <IP address> -l axadmin... (3 Replies)
Hi,
I have a file test.txt . The contain of the file is as below :
365798~SAPUS~PR5~0000799005~ADM CHARG MEDCAL INS~~~~~~~~~~~~~~~~~~~~~~~~SLAC480
I want to modify this file. And file contain loking like
"365798"~"SAPUS"~"PR5"~"0000799005"~"ADM CHARG MEDCAL... (6 Replies)
Hi,
I have a file abcd.txt.
cat abcd.txt
output is as follows :
"aa"~"bb"~"001"~""~""~"cc"
"dd"~"005"~""
~""~"kk"~"aa"~"00
8"~""~""~
I want the output looking like:
cat abcd.txt
"aa"~"bb"~"001"~""~""~
"cc""dd"~"005"~""~""~
"kk"~"aa"~"008"~""~""~
I have a script. (4 Replies)
Hi All,
I have a file disk_space.log.
cat disk_space.log
94% /
32% /boot
38% /mnt/data
100% /media/CDROM
I want the output, like
cat disk_space.log
94% /
100% /media/CDROM
That means print the line those are grater-than 90%. And rest of the line is remove from file.
I have a... (2 Replies)
Hi, I have a file input.txt. cat input.txt output is as follows : Code: "0001"~"name"~"bb"~"20.25"~""~""~"0002"~"name" "dd"~"35.50"~"" ~""~"0003"~"name"~"aa"~"21.3 5"~""~""~ I want the output looking like: cat output.txt Code: "0001"~"name"~"bb"~"20.25"~""~""~... (6 Replies)
Hi,
I have a file. File contains are as follows :
Feb 19, 2012 5:05:00 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 19, 2012 5:05:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 771 ms
Feb 20, 2012... (3 Replies)
I need help modifying the code below.
DATAFILE is a log file.
I have two strings i need to search for in the log file.
The two strings are:
1. ERROR
2. com.rolander.promotions.client
awk 'BEGIN {
while((getline < "'${SFILE}'")>0)
S
FS="\n"; RS="\n"
} (11 Replies)
I have below code, i want to run this code, but this below code should run on
myblocka
myblockb
myblockcc
myblockxx
myblockanything
but it will not run on "myblock"
for BLOCK in /sys/block/myblock*
do
echo "100000" > "$BLOCK"/abcd
done (7 Replies)
Discussion started by: learnbash
7 Replies
LEARN ABOUT FREEBSD
msdosfs
MSDOSFS(5) BSD File Formats Manual MSDOSFS(5)NAME
msdosfs -- MS-DOS file system
SYNOPSIS
options MSDOSFS
DESCRIPTION
The msdosfs driver will permit the FreeBSD kernel to read and write MS-DOS based file systems.
The most common usage follows:
mount -t msdosfs /dev/ada0sN /mnt
where N is the partition number and /mnt is a mount point. Some users tend to create a /dos directory for msdosfs mount points. This helps
to keep better track of the file system, and make it more easily accessible.
It is possible to define an entry in /etc/fstab that looks similar to:
/dev/ada0sN /dos msdosfs rw 0 0
This will mount an MS-DOS based partition at the /dos mount point during system boot. Using /mnt as a permanent mount point is not advised
as its intention has always been to be a temporary mount point for floppy and ZIP disks. See hier(7) for more information on FreeBSD direc-
tory layout.
SEE ALSO mount(2), unmount(2), mount(8), mount_msdosfs(8), umount(8)AUTHORS
This manual page was written by Tom Rhodes <trhodes@FreeBSD.org>.
BSD October 1, 2013 BSD