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 DEBIAN
lfc_utime
LFC_UTIME(3) LFC Library Functions LFC_UTIME(3)NAME
lfc_utime - set last access and modification times
SYNOPSIS
#include <sys/types.h>
#include "lfc_api.h"
int lfc_utime (const char *path, struct utimbuf *times)
DESCRIPTION
lfc_utime sets last access and modification times.
path specifies the logical pathname relative to the current LFC directory or the full LFC pathname.
If times is NULL, the access and modification times are set to the current time else they are set to the utimbuf structure member values.
ctime is set to current time.
RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
ERRORS
EPERM times is not NULL and the caller effective user ID does not match the owner ID of the file and the caller does not have ADMIN
privilege in the Cupv database.
ENOENT A component of path prefix does not exist or path is a null pathname.
EACCES Search permission is denied on a component of the path prefix or the caller effective user ID does not match the owner ID of
the file or write permission on the file itself is denied and times is NULL.
EFAULT path is a NULL pointer.
ENOTDIR A component of path prefix is not a directory.
ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN.
SENOSHOST Host unknown.
SENOSSERV Service unknown.
SECOMERR Communication error.
ENSNACT Name server is not running or is being shutdown.
SEE ALSO Castor_limits(4), lfc_chdir(3), lfc_statg(3), Cupvlist(1)AUTHOR
LCG Grid Deployment Team
LFC $Date: 2002/10/16 06:25:40 $ LFC_UTIME(3)