That's the expansion of asterisk (in this case) by the shell to filenames.
Have you tried what I've suggested in my earlier post?
Ah ok! You had modified the previous post and I don't see the code.
Now it working fine. BTW, I'm used asterisk because under LOG directory there is the SYNC directory, so I've to use * to take only .DAT files!
Just another question, if the file doesn't exists I need to show it and then copy to SYNC dir (so next time will not be shown). How can I add the copy command to the following line?
Hi All,
I need to create a file which contains the list of all the files present in that directory.
e.g.,
ls /export/home/user/*.dat > list_file.dat
but what i am getting is:
$ ls /export/home/user/*.dat > list_file.dat
/export/home/user/*.dat: No such file or directory
But I have... (1 Reply)
I am having following folder structure.
/root/audios/pop
/root/audios/jazz
/root/audios/rock
Inside those pop, jazz, rock folders there are following files,
p1.ul, p2.ul, p3.ul, j1.ul, j2.ul, j3.ul, r1.ul, r2.ul, r3.ul
And I have a file named as "audio.txt" in the path /root/audios,... (11 Replies)
Hi
I'm in a directory named /tmp/mq7
i need to upgrade the mq version from 6 to 7 but im not sure where is the package located ?
which command in solaris will show me the list of all the packages present in the directory /tmp/mq7 ?
my box is running with solaris version 10. (2 Replies)
Hi All,
I want to copy all the contents of a list of files in a folder to a particular file. i am using following command:
cat dir/* >> newFile.txtIt's not working.
Could you please help?
Thanks,
Pranav (3 Replies)
The contents of my service file srvtemplate-data-i4-s1.conf is
Description=test service for users
After=network.target local-fs.target
Type=forking
RemainAfterExit=no
PIDFile=/data/i4/srvt.pid
LimitCORE=infinity
EnvironmentFile=%I
.
.
.
WantedBy=multi-user.target (0 Replies)
Hi All ,
We need one help on the below requirement.We have multiple pipe delimited .txt file(around 100 .txt files) present on one directory.We need the total record count of all the files present in that directory without header.File format as below :
... (8 Replies)
Discussion started by: STCET22
8 Replies
LEARN ABOUT FREEBSD
sync
SYNC(8) BSD System Manager's Manual SYNC(8)NAME
sync -- force completion of pending disk writes (flush cache)
SYNOPSIS
sync
DESCRIPTION
The sync utility can be called to ensure that all disk writes have been completed before the processor is halted in a way not suitably done
by reboot(8) or halt(8). Generally, it is preferable to use reboot(8) or halt(8) to shut down the system, as they may perform additional
actions such as resynchronizing the hardware clock and flushing internal caches before performing a final sync.
The sync utility utilizes the sync(2) function call.
SEE ALSO fsync(2), sync(2), syncer(4), halt(8), reboot(8)HISTORY
A sync utility appeared in Version 4 AT&T UNIX.
BSD May 31, 1993 BSD